• 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
CFPreferences & NSArray*
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFPreferences & NSArray*


  • Subject: CFPreferences & NSArray*
  • From: Alessandro Volz <email@hidden>
  • Date: Tue, 2 Mar 2004 12:32:45 +0100

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]];
CFPreferencesSetAppValue((CFStringRef)@"Test", inner,
kCFPreferencesCurrentApplication);

Thanks.... (crashes on "CFRetain" inside CFPreferencesSetAppValue).
---
Tous les chats sont mortels. Socrate est mortel. Donc Socrate est un
chat.
_______________________________________________
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.


  • Follow-Ups:
    • Re: CFPreferences & NSArray*
      • From: Jim Correia <email@hidden>
  • Prev by Date: Split class implementation into separate files.
  • Next by Date: Re: drawing an image in an NSRect?
  • Previous by thread: Re: Split class implementation into separate files.
  • Next by thread: Re: CFPreferences & NSArray*
  • Index(es):
    • Date
    • Thread