diff dwt/internal/cocoa/NSUndoManager.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSUndoManager.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSUndoManager.d	Tue Aug 19 17:35:17 2008 +0200
@@ -13,6 +13,7 @@
  *******************************************************************************/
 module dwt.internal.cocoa.NSUndoManager;
 
+import dwt.internal.cocoa.id;
 import dwt.internal.cocoa.NSArray;
 import dwt.internal.cocoa.NSObject;
 import dwt.internal.cocoa.NSInteger;
@@ -35,161 +36,161 @@
 
     public void beginUndoGrouping ()
     {
-        OS.objc_msgSend(this.id, OS.sel_beginUndoGrouping);
+        OS.objc_msgSend(this.id_, OS.sel_beginUndoGrouping);
     }
 
     public bool canRedo ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_canRedo) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_canRedo) !is null;
     }
 
     public bool canUndo ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_canUndo) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_canUndo) !is null;
     }
 
     public void disableUndoRegistration ()
     {
-        OS.objc_msgSend(this.id, OS.sel_disableUndoRegistration);
+        OS.objc_msgSend(this.id_, OS.sel_disableUndoRegistration);
     }
 
     public void enableUndoRegistration ()
     {
-        OS.objc_msgSend(this.id, OS.sel_enableUndoRegistration);
+        OS.objc_msgSend(this.id_, OS.sel_enableUndoRegistration);
     }
 
     public void endUndoGrouping ()
     {
-        OS.objc_msgSend(this.id, OS.sel_endUndoGrouping);
+        OS.objc_msgSend(this.id_, OS.sel_endUndoGrouping);
     }
 
     public NSInteger groupingLevel ()
     {
-        return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_groupingLevel);
+        return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_groupingLevel);
     }
 
     public bool groupsByEvent ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_groupsByEvent) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_groupsByEvent) !is null;
     }
 
     public bool isRedoing ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isRedoing) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isRedoing) !is null;
     }
 
     public bool isUndoRegistrationEnabled ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isUndoRegistrationEnabled) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isUndoRegistrationEnabled) !is null;
     }
 
     public bool isUndoing ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isUndoing) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isUndoing) !is null;
     }
 
     public NSUInteger levelsOfUndo ()
     {
-        return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_levelsOfUndo);
+        return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_levelsOfUndo);
     }
 
     public id prepareWithInvocationTarget (id target)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_prepareWithInvocationTarget_1, target !is null ? target.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_prepareWithInvocationTarget_1, target !is null ? target.id_ : null);
         return result !is null ? new id(result) : null;
     }
 
     public void redo ()
     {
-        OS.objc_msgSend(this.id, OS.sel_redo);
+        OS.objc_msgSend(this.id_, OS.sel_redo);
     }
 
     public NSString redoActionName ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_redoActionName);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_redoActionName);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSString redoMenuItemTitle ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_redoMenuItemTitle);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_redoMenuItemTitle);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSString redoMenuTitleForUndoActionName (NSString actionName)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_redoMenuTitleForUndoActionName_1, actionName !is null ? actionName.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_redoMenuTitleForUndoActionName_1, actionName !is null ? actionName.id_ : null);
         return result !is null ? new NSString(result) : null;
     }
 
     public void registerUndoWithTarget (id target, objc.SEL selector, id anObject)
     {
-        OS.objc_msgSend(this.id, OS.sel_registerUndoWithTarget_1selector_1object_1, target !is null ? target.id : null, selector,
-                anObject !is null ? anObject.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_registerUndoWithTarget_1selector_1object_1, target !is null ? target.id_ : null, selector,
+                anObject !is null ? anObject.id_ : null);
     }
 
     public void removeAllActions ()
     {
-        OS.objc_msgSend(this.id, OS.sel_removeAllActions);
+        OS.objc_msgSend(this.id_, OS.sel_removeAllActions);
     }
 
     public void removeAllActionsWithTarget (id target)
     {
-        OS.objc_msgSend(this.id, OS.sel_removeAllActionsWithTarget_1, target !is null ? target.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_removeAllActionsWithTarget_1, target !is null ? target.id_ : null);
     }
 
     public NSArray runLoopModes ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_runLoopModes);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_runLoopModes);
         return result !is null ? new NSArray(result) : null;
     }
 
     public void setActionName (NSString actionName)
     {
-        OS.objc_msgSend(this.id, OS.sel_setActionName_1, actionName !is null ? actionName.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setActionName_1, actionName !is null ? actionName.id_ : null);
     }
 
     public void setGroupsByEvent (bool groupsByEvent)
     {
-        OS.objc_msgSend(this.id, OS.sel_setGroupsByEvent_1, groupsByEvent);
+        OS.objc_msgSend(this.id_, OS.sel_setGroupsByEvent_1, groupsByEvent);
     }
 
     public void setLevelsOfUndo (NSUInteger levels)
     {
-        OS.objc_msgSend(this.id, OS.sel_setLevelsOfUndo_1, levels);
+        OS.objc_msgSend(this.id_, OS.sel_setLevelsOfUndo_1, levels);
     }
 
     public void setRunLoopModes (NSArray runLoopModes)
     {
-        OS.objc_msgSend(this.id, OS.sel_setRunLoopModes_1, runLoopModes !is null ? runLoopModes.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setRunLoopModes_1, runLoopModes !is null ? runLoopModes.id_ : null);
     }
 
     public void undo ()
     {
-        OS.objc_msgSend(this.id, OS.sel_undo);
+        OS.objc_msgSend(this.id_, OS.sel_undo);
     }
 
     public NSString undoActionName ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_undoActionName);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_undoActionName);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSString undoMenuItemTitle ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_undoMenuItemTitle);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_undoMenuItemTitle);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSString undoMenuTitleForUndoActionName (NSString actionName)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_undoMenuTitleForUndoActionName_1, actionName !is null ? actionName.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_undoMenuTitleForUndoActionName_1, actionName !is null ? actionName.id_ : null);
         return result !is null ? new NSString(result) : null;
     }
 
     public void undoNestedGroup ()
     {
-        OS.objc_msgSend(this.id, OS.sel_undoNestedGroup);
+        OS.objc_msgSend(this.id_, OS.sel_undoNestedGroup);
     }
 
 }