On Apr 28, 2009, at 8:59 AM, MyApps wrote:

First off, a suggestion: please don't delimit code sections like you do. In fact, you don't need any delimiters other than whitespace (as you can see with the edited text below). And you can see, it is just as readable, and, IMHO, it is actually *more* readable.

Anyway, on the the question...

If I do this:

NSMutableDictionary *theDicRow = [NSMutableDictionary dictionaryWithObjectsAndKeys:
        @"Text A", @"colA",
        @"", @"colB",
        nil ];

The result is:

[2355:10b] (
       {
       colA = "Text A";
   }
)

But I wanna have the empty string back. So it seems, that the empty string is converted to nill and the controller is killing them out. How can I change this reaction with empty strings? I need this @"" Strings.

I am not surprised to see this behavior, for various reasons. The short answer is no, you can't have an empty string for a key in conjunction with an NSArrayController. What would be the key path for an empty string?

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to