• 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
NSNotification Surprise Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: setFrameAutosaveName: gone insane
  • Next by Date: Re: Carracho and Hotline Sockets...
  • Previous by thread: Re: setFrameAutosaveName: gone insane
  • Next by thread: Re: EOF (was [objC retain];
  • Index(es):
    • Date
    • Thread