• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFPreferences & NSArray*
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFPreferences & NSArray*


  • Subject: Re: CFPreferences & NSArray*
  • From: Jim Correia <email@hidden>
  • Date: Tue, 2 Mar 2004 07:03:55 -0500

On Mar 2, 2004, at 6:32 AM, Alessandro Volz wrote:

PLEASE :(( someone tell me why this code makes my app crash....

NSMutableArray *inner = [NSMutableArray arrayWithCapacity:0];
[inner addObject:[NSNumber numberWithBool:NO]];
[inner addObject:[NSNumber numberWithChar:'+']];
[inner addObject:[NSString stringWithString:@"Whatever"]];
[inner addObject:[NSNumber numberWithChar:13]];
[inner addObject:[NSColor redColor]];

NSColor is not a plist type. You'll have to put some other representation in the preferences (such as an NSData which is the result of encoding it with an NSArchiver.)

Jim
_______________________________________________
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.


References: 
 >CFPreferences & NSArray* (From: Alessandro Volz <email@hidden>)

  • Prev by Date: Re: drawing an image in an NSRect?
  • Next by Date: Re: Split class implementation into separate files.
  • Previous by thread: CFPreferences & NSArray*
  • Next by thread: Re: Split class implementation into separate files.
  • Index(es):
    • Date
    • Thread