FROM : Clark S. Cox III
DATE : Mon Nov 25 20:43:40 2002
On Monday, Nov 25, 2002, at 14:30 US/Eastern, Steve wrote:
> Unfortunately accessing a button as part of a NSMatrix returns an
> NSButtonCell, which does not recognize displayIfNeeded.
> I wish I could get NSMatrix to return an NSButton, as I seem to be
> maintaining two lots of code depending if I'm working with a
> collection of buttons, or individual single ones. Not very OO?
Try this:
[[someCell controlView] displayIfNeeded]
_______________________________________________
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.
DATE : Mon Nov 25 20:43:40 2002
On Monday, Nov 25, 2002, at 14:30 US/Eastern, Steve wrote:
> Unfortunately accessing a button as part of a NSMatrix returns an
> NSButtonCell, which does not recognize displayIfNeeded.
> I wish I could get NSMatrix to return an NSButton, as I seem to be
> maintaining two lots of code depending if I'm working with a
> collection of buttons, or individual single ones. Not very OO?
Try this:
[[someCell controlView] displayIfNeeded]
_______________________________________________
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 mails | Author | Date |
|---|---|---|
| Steve | Nov 25, 17:03 | |
| Clark S. Cox III | Nov 25, 17:26 | |
| Steve | Nov 25, 20:30 | |
| Clark S. Cox III | Nov 25, 20:43 | |
| Andreas Mayer | Nov 26, 20:09 |






Cocoa mail archive

