• 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: NSArrayController: Objects with empty strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController: Objects with empty strings


  • Subject: Re: NSArrayController: Objects with empty strings
  • From: Keary Suska <email@hidden>
  • Date: Tue, 28 Apr 2009 13:22:22 -0600

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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSArrayController: Objects with empty strings (From: MyApps <email@hidden>)

  • Prev by Date: Re: Group Identity Programming
  • Next by Date: Re: NSArrayController: Objects with empty strings
  • Previous by thread: NSArrayController: Objects with empty strings
  • Next by thread: Re: NSArrayController: Objects with empty strings
  • Index(es):
    • Date
    • Thread