Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 9 Aug 2008, at 17:39:20 -0600, Jonathan deWerd [EMAIL PROTECTED]wrote: On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSMutableString

Re: I don't understand why this is leaking...

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 10:42 schrieb Gerriet M. Denkmann: On 9 Aug 2008, at 17:39:20 -0600, Jonathan deWerd [EMAIL PROTECTED] wrote: On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath =

Re: I don't understand why this is leaking...

2008-08-12 Thread Graham Cox
On 12 Aug 2008, at 6:42 pm, Gerriet M. Denkmann wrote: 2. NSKeyedArchiver can only store certain strings (tested in 10.4.11), which makes it absolutely unusable for the storage of strings if the possible values are not known in advance. Eh? That's just not true. Can you provide an

Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 15:50, Negm-Awad Amin wrote: Am Di,12.08.2008 um 10:42 schrieb Gerriet M. Denkmann: On 9 Aug 2008, at 17:39:20 -0600, Jonathan deWerd [EMAIL PROTECTED]wrote: On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: [...] Also, why are you using non-keyed encoding?

Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 17:19, Graham Cox wrote: On 12 Aug 2008, at 6:42 pm, Gerriet M. Denkmann wrote: 2. NSKeyedArchiver can only store certain strings (tested in 10.4.11), which makes it absolutely unusable for the storage of strings if the possible values are not known in advance. Eh?

Re: I don't understand why this is leaking...

2008-08-12 Thread Graham Cox
On 12 Aug 2008, at 8:40 pm, Gerriet M. Denkmann wrote: I'm sure if it weren't someone would have raised merry hell about it before now. Something's fishy... Reminds of a very rational being walking the streets with his son. The son: Hey dad, there's a hundred dollar note! Dad: No son, this

Re: I don't understand why this is leaking...

2008-08-12 Thread Negm-Awad Amin
Probably $null is a reserved word. -encodeWithCoder: (NSString) and - initWithCoder: (NSString) should escape that. No good … Amin Am Di,12.08.2008 um 12:25 schrieb Gerriet M. Denkmann: On 12 Aug 2008, at 15:50, Negm-Awad Amin wrote: Am Di,12.08.2008 um 10:42 schrieb Gerriet M. Denkmann:

Re: I don't understand why this is leaking...

2008-08-12 Thread Phil
On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: Yes, I have. 1. Simple Test: In IB create new window, add NSTextField with content $null (without the quotes) save in 10.2 or later format. Close. Open again. Look at your string. [...] Maybe this will work on

Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 18:26, Negm-Awad Amin wrote: Probably $null is a reserved word. -encodeWithCoder: (NSString) and -initWithCoder: (NSString) should escape that. No good … Wenn es das wäre, dann hätte man das sicherlich documentiert. (This as a challenge for our English-speaking (or should

Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 18:05, Graham Cox wrote: On 12 Aug 2008, at 8:40 pm, Gerriet M. Denkmann wrote: I'm sure if it weren't someone would have raised merry hell about it before now. Something's fishy... Reminds of a very rational being walking the streets with his son. The son: Hey dad,

Re: I don't understand why this is leaking...

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 14:11 schrieb Gerriet M. Denkmann: On 12 Aug 2008, at 18:26, Negm-Awad Amin wrote: Probably $null is a reserved word. -encodeWithCoder: (NSString) and -initWithCoder: (NSString) should escape that. No good … Wenn es das wäre, dann hätte man das sicherlich

Re: I don't understand why this is leaking...

2008-08-12 Thread Adam R. Maxwell
On Aug 12, 2008, at 4:49 AM, Phil wrote: On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: Yes, I have. 1. Simple Test: In IB create new window, add NSTextField with content $null (without the quotes) save in 10.2 or later format. Close. Open again. Look at

Re: I don't understand why this is leaking...

2008-08-12 Thread Jason Coco
On Aug 12, 2008, at 07:49 , Phil wrote: On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: Yes, I have. 1. Simple Test: In IB create new window, add NSTextField with content $null (without the quotes) save in 10.2 or later format. Close. Open again. Look at

Re: I don't understand why this is leaking...

2008-08-12 Thread Michael Ash
On Tue, Aug 12, 2008 at 7:05 AM, Graham Cox [EMAIL PROTECTED] wrote: On 12 Aug 2008, at 8:40 pm, Gerriet M. Denkmann wrote: I'm sure if it weren't someone would have raised merry hell about it before now. Something's fishy... Reminds of a very rational being walking the streets with his

I don't understand why this is leaking...

2008-08-12 Thread Klaus Backert
About $Null: It it were a reserved word, it would be documented so. The Archives and Serializations Programming Guide for Cocoa says: Keyed Archives ... Naming Values ... You should avoid using “$” as a prefix for your keys. The keyed archiver and unarchiver use keys prefixed with “$” for

Re: I don't understand why this is leaking...

2008-08-12 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 12:50 PM, Klaus Backert [EMAIL PROTECTED] wrote: You should avoid using $ as a prefix for your keys. The keyed archiver and unarchiver use keys prefixed with $ for internal values. Although they test for and mangle user-defined keys that have a $ prefix, this overhead

Re: I don't understand why this is leaking...

2008-08-12 Thread Michael Ash
On Tue, Aug 12, 2008 at 12:50 PM, Klaus Backert [EMAIL PROTECTED] wrote: About $Null: It it were a reserved word, it would be documented so. The Archives and Serializations Programming Guide for Cocoa says: Keyed Archives ... Naming Values ... You should avoid using $ as a prefix for

Re: I don't understand why this is leaking...

2008-08-12 Thread Jason Coco
On Aug 12, 2008, at 12:50 , Klaus Backert wrote: About $Null: It it were a reserved word, it would be documented so. The Archives and Serializations Programming Guide for Cocoa says: Keyed Archives ... Naming Values ... You should avoid using “$” as a prefix for your keys. The keyed

I don't understand why this is leaking...

2008-08-12 Thread Klaus Backert
Am 12.08.2008 um 19:05 schrieb Jason Coco: On Aug 12, 2008, at 12:50 , Klaus Backert wrote: About $Null: It it were a reserved word, it would be documented so. The Archives and Serializations Programming Guide for Cocoa says: Keyed Archives ... Naming Values ... You should avoid using

Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 13 Aug 2008, at 00:05, Jason Coco wrote: On Aug 12, 2008, at 12:50 , Klaus Backert wrote: About $Null: It it were a reserved word, it would be documented so. The Archives and Serializations Programming Guide for Cocoa says: Keyed Archives ... Naming Values ... You should avoid

Re: I don't understand why this is leaking...

2008-08-10 Thread Jean-Daniel Dupas
Le 10 août 08 à 00:48, Cate Tony a écrit : This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSMutableString stringWithString:@~/Library/Preferences/MyApp/extensions.abc]; NSDictionary* extensions = [NSDictionary

I don't understand why this is leaking...

2008-08-09 Thread Cate Tony
This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSMutableString stringWithString:@~/Library/Preferences/MyApp/extensions.abc]; NSDictionary* extensions = [NSDictionary dictionaryWithDictionary: [itemDataSource itemExtensions]];

Re: I don't understand why this is leaking...

2008-08-09 Thread Jonathan deWerd
On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSMutableString stringWithString:@~/Library/Preferences/MyApp/extensions.abc]; NSDictionary* extensions = [NSDictionary