diff dwt/internal/cocoa/NSToolbarItem.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/NSToolbarItem.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSToolbarItem.d	Tue Aug 19 17:35:17 2008 +0200
@@ -40,181 +40,181 @@
 
     public objc.SEL action ()
     {
-        return cast(objc.SEL) OS.objc_msgSend(this.id, OS.sel_action);
+        return cast(objc.SEL) OS.objc_msgSend(this.id_, OS.sel_action);
     }
 
     public bool allowsDuplicatesInToolbar ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_allowsDuplicatesInToolbar) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_allowsDuplicatesInToolbar) !is null;
     }
 
     public bool autovalidates ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_autovalidates) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_autovalidates) !is null;
     }
 
     public NSImage image ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_image);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_image);
         return result !is null ? new NSImage(result) : null;
     }
 
     public id initWithItemIdentifier (NSString itemIdentifier)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithItemIdentifier_1, itemIdentifier !is null ? itemIdentifier.id : null);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithItemIdentifier_1, itemIdentifier !is null ? itemIdentifier.id_ : null);
         return result !is null ? new id(result) : null;
     }
 
     public bool isEnabled ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isEnabled) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isEnabled) !is null;
     }
 
     public NSString itemIdentifier ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_itemIdentifier);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_itemIdentifier);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSString label ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_label);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_label);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSSize maxSize ()
     {
         NSSize result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_maxSize);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_maxSize);
         return result;
     }
 
     public NSMenuItem menuFormRepresentation ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_menuFormRepresentation);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_menuFormRepresentation);
         return result !is null ? new NSMenuItem(result) : null;
     }
 
     public NSSize minSize ()
     {
         NSSize result;
-        OS.objc_msgSend_stret(result, this.id, OS.sel_minSize);
+        OS.objc_msgSend_stret(&result, this.id_, OS.sel_minSize);
         return result;
     }
 
     public NSString paletteLabel ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_paletteLabel);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_paletteLabel);
         return result !is null ? new NSString(result) : null;
     }
 
     public void setAction (objc.SEL action)
     {
-        OS.objc_msgSend(this.id, OS.sel_setAction_1, action);
+        OS.objc_msgSend(this.id_, OS.sel_setAction_1, action);
     }
 
     public void setAutovalidates (bool resistance)
     {
-        OS.objc_msgSend(this.id, OS.sel_setAutovalidates_1, resistance);
+        OS.objc_msgSend(this.id_, OS.sel_setAutovalidates_1, resistance);
     }
 
     public void setEnabled (bool enabled)
     {
-        OS.objc_msgSend(this.id, OS.sel_setEnabled_1, enabled);
+        OS.objc_msgSend(this.id_, OS.sel_setEnabled_1, enabled);
     }
 
     public void setImage (NSImage image)
     {
-        OS.objc_msgSend(this.id, OS.sel_setImage_1, image !is null ? image.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setImage_1, image !is null ? image.id_ : null);
     }
 
     public void setLabel (NSString label)
     {
-        OS.objc_msgSend(this.id, OS.sel_setLabel_1, label !is null ? label.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setLabel_1, label !is null ? label.id_ : null);
     }
 
     public void setMaxSize (NSSize size)
     {
-        OS.objc_msgSend(this.id, OS.sel_setMaxSize_1, size);
+        OS.objc_msgSend(this.id_, OS.sel_setMaxSize_1, size);
     }
 
     public void setMenuFormRepresentation (NSMenuItem menuItem)
     {
-        OS.objc_msgSend(this.id, OS.sel_setMenuFormRepresentation_1, menuItem !is null ? menuItem.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setMenuFormRepresentation_1, menuItem !is null ? menuItem.id_ : null);
     }
 
     public void setMinSize (NSSize size)
     {
-        OS.objc_msgSend(this.id, OS.sel_setMinSize_1, size);
+        OS.objc_msgSend(this.id_, OS.sel_setMinSize_1, size);
     }
 
     public void setPaletteLabel (NSString paletteLabel)
     {
-        OS.objc_msgSend(this.id, OS.sel_setPaletteLabel_1, paletteLabel !is null ? paletteLabel.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setPaletteLabel_1, paletteLabel !is null ? paletteLabel.id_ : null);
     }
 
     public void setTag (NSInteger tag)
     {
-        OS.objc_msgSend(this.id, OS.sel_setTag_1, tag);
+        OS.objc_msgSend(this.id_, OS.sel_setTag_1, tag);
     }
 
     public void setTarget (id target)
     {
-        OS.objc_msgSend(this.id, OS.sel_setTarget_1, target !is null ? target.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setTarget_1, target !is null ? target.id_ : null);
     }
 
     public void setToolTip (NSString toolTip)
     {
-        OS.objc_msgSend(this.id, OS.sel_setToolTip_1, toolTip !is null ? toolTip.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setToolTip_1, toolTip !is null ? toolTip.id_ : null);
     }
 
     public void setView (NSView view)
     {
-        OS.objc_msgSend(this.id, OS.sel_setView_1, view !is null ? view.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setView_1, view !is null ? view.id_ : null);
     }
 
     public void setVisibilityPriority (NSInteger visibilityPriority)
     {
-        OS.objc_msgSend(this.id, OS.sel_setVisibilityPriority_1, visibilityPriority);
+        OS.objc_msgSend(this.id_, OS.sel_setVisibilityPriority_1, visibilityPriority);
     }
 
     public NSInteger tag ()
     {
-        return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_tag);
+        return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_tag);
     }
 
     public id target ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_target);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_target);
         return result !is null ? new id(result) : null;
     }
 
     public NSString toolTip ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_toolTip);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_toolTip);
         return result !is null ? new NSString(result) : null;
     }
 
     public NSToolbar toolbar ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_toolbar);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_toolbar);
         return result !is null ? new NSToolbar(result) : null;
     }
 
     public void validate ()
     {
-        OS.objc_msgSend(this.id, OS.sel_validate);
+        OS.objc_msgSend(this.id_, OS.sel_validate);
     }
 
     public NSView view ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_view);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_view);
         return result !is null ? new NSView(result) : null;
     }
 
     public NSInteger visibilityPriority ()
     {
-        return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_visibilityPriority);
+        return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_visibilityPriority);
     }
 
 }