NSNotification Surprise Object
NSNotification Surprise Object
- Subject: NSNotification Surprise Object
- From: Matt Massicotte <email@hidden>
- Date: Tue, 14 May 2002 21:18:52 -0400
Hi everyone,
I've got an object that registers for
NSTableViewDidChangeSelectionNotification and examines the returned
object's NSTableColumns. I have lots of NSTableViews in my app and they
all use a similar NSTableColumn identifer scheme.
So I was going about my business trying to find the column that I am
interested in using NSString's isEqualToString method. But, to my
surprise, I kept getting a selector not recognized exception for an
NSShortNumber object. So, I changed my code to watch out for that, and
then just did a simple:
NSLog( [[notification object] description] );
just to see what tableView it was that had these NSShortNumber's as
identifiers. Here's my suprise, NSLog printed NSComboTableView. Now,
as cool a class name as this is, why there is one in my app and why is
it sending my objects notifications? I am tempted to guess class
clusters, but I really don't know too much about them. Anyone know
anything about this?
Matt Massicotte
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.