Hi list,

I am new to the cocoa development. I have some question to NSArrayController

I add an object to the controller array like this:

CODE ##############################################################################

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

[myArrayController addObject:theDicRow];

CODE ##############################################################################


This works great and do its job.
I can call the object from the content an get the log result like this:

CODE ##############################################################################

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

CODE ##############################################################################

Well, this is okay.


If I do this:

CODE ##############################################################################

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

CODE ##############################################################################


The result is:

CODE ##############################################################################

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

CODE ##############################################################################

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.

Thank you for information!
_______________________________________________

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