Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSUserDefaults.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/NSUserDefaults.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSUserDefaults.d Tue Aug 19 17:35:17 2008 +0200 @@ -38,110 +38,110 @@ public void addSuiteNamed (NSString suiteName) { - OS.objc_msgSend(this.id, OS.sel_addSuiteNamed_1, suiteName !is null ? suiteName.id : null); + OS.objc_msgSend(this.id_, OS.sel_addSuiteNamed_1, suiteName !is null ? suiteName.id_ : null); } public NSArray arrayForKey (NSString defaultName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_arrayForKey_1, defaultName !is null ? defaultName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_arrayForKey_1, defaultName !is null ? defaultName.id_ : null); return result !is null ? new NSArray(result) : null; } public bool boolForKey (NSString defaultName) { - return OS.objc_msgSend(this.id, OS.sel_boolForKey_1, defaultName !is null ? defaultName.id : null) !is null; + return OS.objc_msgSend(this.id_, OS.sel_boolForKey_1, defaultName !is null ? defaultName.id_ : null) !is null; } public NSData dataForKey (NSString defaultName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_dataForKey_1, defaultName !is null ? defaultName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_dataForKey_1, defaultName !is null ? defaultName.id_ : null); return result !is null ? new NSData(result) : null; } public NSDictionary dictionaryForKey (NSString defaultName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_dictionaryForKey_1, defaultName !is null ? defaultName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_dictionaryForKey_1, defaultName !is null ? defaultName.id_ : null); return result !is null ? new NSDictionary(result) : null; } public NSDictionary dictionaryRepresentation () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_dictionaryRepresentation); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_dictionaryRepresentation); return result !is null ? new NSDictionary(result) : null; } public double doubleForKey (NSString defaultName) { - return cast(double) OS.objc_msgSend_fpret(this.id, OS.sel_doubleForKey_1, defaultName !is null ? defaultName.id : null); + return cast(double) OS.objc_msgSend_fpret(this.id_, OS.sel_doubleForKey_1, defaultName !is null ? defaultName.id_ : null); } public float floatForKey (NSString defaultName) { - return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_floatForKey_1, defaultName !is null ? defaultName.id : null); + return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_floatForKey_1, defaultName !is null ? defaultName.id_ : null); } public id initWithUser (NSString username) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithUser_1, username !is null ? username.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithUser_1, username !is null ? username.id_ : null); return result !is null ? new id(result) : null; } public NSInteger integerForKey (NSString defaultName) { - return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_integerForKey_1, defaultName !is null ? defaultName.id : null); + return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_integerForKey_1, defaultName !is null ? defaultName.id_ : null); } public id objectForKey (NSString defaultName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_objectForKey_1, defaultName !is null ? defaultName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectForKey_1, defaultName !is null ? defaultName.id_ : null); return result !is null ? new id(result) : null; } public bool objectIsForcedForKey_ (NSString key) { - return OS.objc_msgSend(this.id, OS.sel_objectIsForcedForKey_1, key !is null ? key.id : null) !is null; + return OS.objc_msgSend(this.id_, OS.sel_objectIsForcedForKey_1, key !is null ? key.id_ : null) !is null; } public bool objectIsForcedForKey_inDomain_ (NSString key, NSString domain) { - return OS.objc_msgSend(this.id, OS.sel_objectIsForcedForKey_1inDomain_1, key !is null ? key.id : null, domain !is null ? domain.id : null) !is null; + return OS.objc_msgSend(this.id_, OS.sel_objectIsForcedForKey_1inDomain_1, key !is null ? key.id_ : null, domain !is null ? domain.id_ : null) !is null; } public NSDictionary persistentDomainForName (NSString domainName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_persistentDomainForName_1, domainName !is null ? domainName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_persistentDomainForName_1, domainName !is null ? domainName.id_ : null); return result !is null ? new NSDictionary(result) : null; } public NSArray persistentDomainNames () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_persistentDomainNames); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_persistentDomainNames); return result !is null ? new NSArray(result) : null; } public void registerDefaults (NSDictionary registrationDictionary) { - OS.objc_msgSend(this.id, OS.sel_registerDefaults_1, registrationDictionary !is null ? registrationDictionary.id : null); + OS.objc_msgSend(this.id_, OS.sel_registerDefaults_1, registrationDictionary !is null ? registrationDictionary.id_ : null); } public void removeObjectForKey (NSString defaultName) { - OS.objc_msgSend(this.id, OS.sel_removeObjectForKey_1, defaultName !is null ? defaultName.id : null); + OS.objc_msgSend(this.id_, OS.sel_removeObjectForKey_1, defaultName !is null ? defaultName.id_ : null); } public void removePersistentDomainForName (NSString domainName) { - OS.objc_msgSend(this.id, OS.sel_removePersistentDomainForName_1, domainName !is null ? domainName.id : null); + OS.objc_msgSend(this.id_, OS.sel_removePersistentDomainForName_1, domainName !is null ? domainName.id_ : null); } public void removeSuiteNamed (NSString suiteName) { - OS.objc_msgSend(this.id, OS.sel_removeSuiteNamed_1, suiteName !is null ? suiteName.id : null); + OS.objc_msgSend(this.id_, OS.sel_removeSuiteNamed_1, suiteName !is null ? suiteName.id_ : null); } public void removeVolatileDomainForName (NSString domainName) { - OS.objc_msgSend(this.id, OS.sel_removeVolatileDomainForName_1, domainName !is null ? domainName.id : null); + OS.objc_msgSend(this.id_, OS.sel_removeVolatileDomainForName_1, domainName !is null ? domainName.id_ : null); } public static void resetStandardUserDefaults () @@ -151,38 +151,38 @@ public void setBool (bool value, NSString defaultName) { - OS.objc_msgSend(this.id, OS.sel_setBool_1forKey_1, value, defaultName !is null ? defaultName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setBool_1forKey_1, value, defaultName !is null ? defaultName.id_ : null); } public void setDouble (double value, NSString defaultName) { - OS.objc_msgSend(this.id, OS.sel_setDouble_1forKey_1, value, defaultName !is null ? defaultName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setDouble_1forKey_1, value, defaultName !is null ? defaultName.id_ : null); } public void setFloat (float value, NSString defaultName) { - OS.objc_msgSend(this.id, OS.sel_setFloat_1forKey_1, value, defaultName !is null ? defaultName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setFloat_1forKey_1, value, defaultName !is null ? defaultName.id_ : null); } public void setInteger (NSInteger value, NSString defaultName) { - OS.objc_msgSend(this.id, OS.sel_setInteger_1forKey_1, value, defaultName !is null ? defaultName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setInteger_1forKey_1, value, defaultName !is null ? defaultName.id_ : null); } public void setObject (id value, NSString defaultName) { - OS.objc_msgSend(this.id, OS.sel_setObject_1forKey_1, value !is null ? value.id : null, defaultName !is null ? defaultName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setObject_1forKey_1, value !is null ? value.id_ : null, defaultName !is null ? defaultName.id_ : null); } public void setPersistentDomain (NSDictionary domain, NSString domainName) { - OS.objc_msgSend(this.id, OS.sel_setPersistentDomain_1forName_1, domain !is null ? domain.id : null, - domainName !is null ? domainName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setPersistentDomain_1forName_1, domain !is null ? domain.id_ : null, + domainName !is null ? domainName.id_ : null); } public void setVolatileDomain (NSDictionary domain, NSString domainName) { - OS.objc_msgSend(this.id, OS.sel_setVolatileDomain_1forName_1, domain !is null ? domain.id : null, domainName !is null ? domainName.id : null); + OS.objc_msgSend(this.id_, OS.sel_setVolatileDomain_1forName_1, domain !is null ? domain.id_ : null, domainName !is null ? domainName.id_ : null); } public static NSUserDefaults standardUserDefaults () @@ -193,30 +193,30 @@ public NSArray stringArrayForKey (NSString defaultName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_stringArrayForKey_1, defaultName !is null ? defaultName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringArrayForKey_1, defaultName !is null ? defaultName.id_ : null); return result !is null ? new NSArray(result) : null; } public NSString stringForKey (NSString defaultName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_stringForKey_1, defaultName !is null ? defaultName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringForKey_1, defaultName !is null ? defaultName.id_ : null); return result !is null ? new NSString(result) : null; } public bool synchronize () { - return OS.objc_msgSend(this.id, OS.sel_synchronize) !is null; + return OS.objc_msgSend(this.id_, OS.sel_synchronize) !is null; } public NSDictionary volatileDomainForName (NSString domainName) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_volatileDomainForName_1, domainName !is null ? domainName.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_volatileDomainForName_1, domainName !is null ? domainName.id_ : null); return result !is null ? new NSDictionary(result) : null; } public NSArray volatileDomainNames () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_volatileDomainNames); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_volatileDomainNames); return result !is null ? new NSArray(result) : null; }