Skip navigation.
 
mlRe: spurious Mountain View and Redwood City
FROM : Jonathan Jackel
DATE : Sun Dec 15 17:41:02 2002

on 12/15/02 11:17 AM, <email_removed> at <email_removed> wrote:

> On dimanche, dicembre 15, 2002, at 03:23  PM, matt neuburg wrote:
>

>> I have a custom NSFormatter, and I had to write an exception handler
>> because when my window opens, containing several interface items that
>> use the formatter, before I put any data into the window, the
>> formatter is bombarded with values like "Mountain View" and "Redwood
>> City". Where the heck are these coming from? (Not my code, I assure
>> you.) Is this some sort of Silicon Valley plot to take over the world?
>> m.

>
> To get an idea where the value are coming from:
>
> Launch Interface Builder, create a new Application and add a
> NSTableView to the window.
>
> Now the question is what mysterious thing are you doing to get the
> values used by Interface Builder in its NSTableView Data Source?


There's no real mystery.  Just attach a formatter subclass to a table column
and log stringForObjectValue: and
getObjectValue:forString:errorDescription:.  It appears that the cities are
init-ed into the table view.  They show up for the first few calls to the
formatter.  Then (I guess) the tableview asks for the real datasource to
start providing values and Redwood City, etc., disappear.

Jonathan
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlspurious Mountain View and Redwood City matt neuburg Dec 15, 15:23
mlRe: spurious Mountain View and Redwood City Chris Ridd Dec 15, 15:31
mlRe: spurious Mountain View and Redwood City Dave Sopchak Dec 15, 15:34
mlRe: spurious Mountain View and Redwood City Jonathan Jackel Dec 15, 16:39
mlRe: spurious Mountain View and Redwood City ssudre2 Dec 15, 17:17
mlRe: spurious Mountain View and Redwood City Jonathan Jackel Dec 15, 17:41
mlRe: spurious Mountain View and Redwood City Henri Lamiraux Dec 16, 06:28
mlRE: spurious Mountain View and Redwood City Jonathan E. Jackel Dec 16, 15:35
mlRe: spurious Mountain View and Redwood City matt neuburg Dec 17, 18:50
mlRe: spurious Mountain View and Redwood City Henri Lamiraux Dec 17, 19:39
mlRe: spurious Mountain View and Redwood City matt neuburg Dec 17, 19:48