Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSColorList.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/NSColorList.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSColorList.d Tue Aug 19 17:35:17 2008 +0200 @@ -36,7 +36,7 @@ public NSArray allKeys () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_allKeys); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_allKeys); return result !is null ? new NSArray(result) : null; } @@ -48,62 +48,62 @@ public static NSColorList colorListNamed (NSString name) { - objc.id result = OS.objc_msgSend(OS.class_NSColorList, OS.sel_colorListNamed_1, name !is null ? name.id : null); + objc.id result = OS.objc_msgSend(OS.class_NSColorList, OS.sel_colorListNamed_1, name !is null ? name.id_ : null); return result !is null ? new NSColorList(result) : null; } public NSColor colorWithKey (NSString key) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_colorWithKey_1, key !is null ? key.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_colorWithKey_1, key !is null ? key.id_ : null); return result !is null ? new NSColor(result) : null; } public NSColorList initWithName_ (NSString name) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithName_1, name !is null ? name.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithName_1, name !is null ? name.id_ : null); return result !is null ? this : null; } public NSColorList initWithName_fromFile_ (NSString name, NSString path) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithName_1fromFile_1, name !is null ? name.id : null, path !is null ? path.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithName_1fromFile_1, name !is null ? name.id_ : null, path !is null ? path.id_ : null); return result !is null ? this : null; } public void insertColor (NSColor color, NSString key, NSUInteger loc) { - OS.objc_msgSend(this.id, OS.sel_insertColor_1key_1atIndex_1, color !is null ? color.id : null, key !is null ? key.id : null, loc); + OS.objc_msgSend(this.id_, OS.sel_insertColor_1key_1atIndex_1, color !is null ? color.id_ : null, key !is null ? key.id_ : null, loc); } public bool isEditable () { - return OS.objc_msgSend(this.id, OS.sel_isEditable) !is null; + return OS.objc_msgSend(this.id_, OS.sel_isEditable) !is null; } public NSString name () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_name); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_name); return result !is null ? new NSString(result) : null; } public void removeColorWithKey (NSString key) { - OS.objc_msgSend(this.id, OS.sel_removeColorWithKey_1, key !is null ? key.id : null); + OS.objc_msgSend(this.id_, OS.sel_removeColorWithKey_1, key !is null ? key.id_ : null); } public void removeFile () { - OS.objc_msgSend(this.id, OS.sel_removeFile); + OS.objc_msgSend(this.id_, OS.sel_removeFile); } public void setColor (NSColor color, NSString key) { - OS.objc_msgSend(this.id, OS.sel_setColor_1forKey_1, color !is null ? color.id : null, key !is null ? key.id : null); + OS.objc_msgSend(this.id_, OS.sel_setColor_1forKey_1, color !is null ? color.id_ : null, key !is null ? key.id_ : null); } public bool writeToFile (NSString path) { - return OS.objc_msgSend(this.id, OS.sel_writeToFile_1, path !is null ? path.id : null) !is null; + return OS.objc_msgSend(this.id_, OS.sel_writeToFile_1, path !is null ? path.id_ : null) !is null; } }