MyApps wrote:

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.


This works fine for me.

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

  NSLog( @"dict: %@", dict );

OUTPUT:
2009-04-28 12:31:39.881 foo[2471] dict: {colA = "Text A"; colB = ""; }

The controller could still be "killing them out" as you put it, but the problem is not because the empty string is nil. The dictionary is definitely being created with the key "colB" having a value of an empty string.

  -- GG

_______________________________________________

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