Re: Weird UserDefaults problem
Re: Weird UserDefaults problem
- Subject: Re: Weird UserDefaults problem
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 14 Mar 2004 19:00:31 -0800
On Mar 14, 2004, at 6:45 PM, Matt Ball wrote:
if(openNewWindowWithPageType == @"Empty Page")
== tests pointer identity, use [openNewWindowWithPageType
isEqualToString:@"Empty Page"]
See:
<
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSString.html>
Also:
homePage = [[NSUserDefaults standardUserDefaults]
objectForKey:@"HomePageAddress"];
if(homePage == nil)
{
homePage = @"http://www.apple.com";
}
It would probably be better to register @"
http://www.apple.com" as the
"factory default" (see
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
UserDefaults/index.html>, key word: "register")...
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.