• 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: duplicate preference keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicate preference keys


  • Subject: Re: duplicate preference keys
  • From: Tom Sutcliffe <email@hidden>
  • Date: Fri, 8 Aug 2003 14:11:43 +0100

You're looking at the plist in Property List Editor right?

The most recent version (well, excluding whatever might be included in panther) is buggy as hell and displays keys and values wrongly all over the place. Open the file in a text editor and check if you really actually have duplicates. If you don't, I'd recommend downgrading to v1.2.1 of Property List Editor. Point Pacifist at an older version of the developer tools .pkg. It'll be the most worthwhile 5 minutes you'll spend in the context of plist files. I forget which release of the tools has this version, but that at least works perfectly for me.

I have no idea why the editor is messed up, Apple have said (I think on this list) that the actual XML parsing routines are fine, and it's just the editor, so you really shouldn't be getting duplicates unless you're constructing XML yourself, which you shouldn't be doing for a prefs file anyway. Roll on Panther for (I hope) a package maker that doesn't require postflight perl scripts longer than your app's source code, a plist editor that works again, Java indexes that don't quadruple the size of your project... :)

Of course, if you do actually have duplicate keys in a dictionary, file a bug report pronto.

Regards,

Tom


On Friday, August 8, 2003, at 09:24 am, Brent Gulanowski wrote:

I did not think that this was supposed to be possible, but somehow I'm managing (by error and accident) to put two entries in a prefs plist with the same key. And of course they both have the wrong value. If they had different values, I would be even more worried. I know that the keys are the same because I followed Mr. Hillegasse's advice and made constants of all of my keys, and only use the constant > references.

Ideas as to what this means, if anything, would be valued and appreciated. Thanks in advance.


--
Brent Gulanowski email@hidden
_______________________________________________
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.
_______________________________________________
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: 
 >duplicate preference keys (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: Memory Management (Part I)
  • Next by Date: Re: Memory Management (Part I)
  • Previous by thread: duplicate preference keys
  • Next by thread: Re: duplicate preference keys
  • Index(es):
    • Date
    • Thread