• 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: Crazy CFPreferences!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crazy CFPreferences!


  • Subject: Re: Crazy CFPreferences!
  • From: SEBESTYÉN Gábor <email@hidden>
  • Date: Mon, 18 Oct 2004 20:07:00 +0200

>Since you create the dictionary with null callbacks it doesn't retain
>objects you add to it. I'd guess that because of this dict0 may contain
>already released (ie junk) values, from the first time the data was
>saved.
I didn't create dictionaries as you might see in the code snippet I sent.
- First I get a dict with CFPreferencesCopyAppValue(ksect, kCFPreferencesCurrentApplication);
- Then I create a mutable copy CFDictionaryCreateMutableCopy(NULL, 0, dict0);
The program crashes at this point.

Maybe you're right. In that case I don't really know how to prevent this illogic crash. I simply cannot find another way to create a dict in safe way (retained) and make the other copied to it.
If you have any idea how to solve this I would appreciate.

Best regards,

Gábor

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Crazy CFPreferences!
      • From: Frederick Cheung <email@hidden>
References: 
 >Crazy CFPreferences! (From: SEBESTYÉN Gábor <email@hidden>)
 >Re: Crazy CFPreferences! (From: Frederick Cheung <email@hidden>)

  • Prev by Date: No Warning on compilation time with a forgeted @try and @catch
  • Next by Date: Problem with -[NSKeyedArchiver setClassName:forClass:]
  • Previous by thread: Re: Crazy CFPreferences!
  • Next by thread: Re: Crazy CFPreferences!
  • Index(es):
    • Date
    • Thread