• 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: NSComboBoxCell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBoxCell in NSTableView


  • Subject: Re: NSComboBoxCell in NSTableView
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 7 Dec 2003 01:18:07 -0500

I know it's old, but it still applies..

NSCell in your application
http://www.stepwise.com/Articles/Technical/NSCell.html

On Dec 6, 2003, at 4:30 PM, Michael Becker wrote:

I am using NSComboBoxCell in NSTableView in my application, and I don't see the problems you are mentioning. Here is what I did in the windowDidLoad method:


I think I wasn't specific enough: I have a subclass of NSCell which contains several buttons and controls. One of these is an NSComboBoxCell. I have to somehow tunnel the mouseclick from my NSCell subclass to the correct control (within this NSCell subclass).

Right now I am doing this by overriding trackMouse:, then checking if e.g. the NSComboBox has been clicked (coordinate-wise) and then I call the NSComboBox's trackMouse: method manually.

By the way: Do I have to care about the NSEvent that I forward to my controls? Right now it's like this:

(NSCell subclass)

- trackMouse:(NSEvent*)theEvent [ . . . ] {
[ . . . ]
return [ comboBox trackMouse:theEvent . . . ];
}

Is this maybe causing trouble? Is there anything I need to be aware of when dealing with events etc. in such a manner?

- Michael
_______________________________________________
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.
_______________________________________________
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.

References: 
 >NSComboBoxCell in NSTableView (From: Michael Becker <email@hidden>)
 >Re: NSComboBoxCell in NSTableView (From: Ivan Myrvold <email@hidden>)
 >Re: NSComboBoxCell in NSTableView (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: best way to save document level settings?
  • Next by Date: Re: tableviews
  • Previous by thread: Re: NSComboBoxCell in NSTableView
  • Next by thread: Re: NSComboBoxCell in NSTableView
  • Index(es):
    • Date
    • Thread