passing messages to parent controls?
passing messages to parent controls?
- Subject: passing messages to parent controls?
- From: Duncan Campbell <email@hidden>
- Date: Thu, 27 Jan 2005 19:35:01 +1100
Hi folks,
I'm building my own tabs to mimic the way that safari tabs work (with
the nice mouse-over effects etc).
Each tab is an NSView subclass with an image on it for the "close"
button. I then have a wrapper class that creates the tab-bar that each
tab sits on (basically an array of tab items). Each tab item has 2
events - 1 for the tab select click, and 1 for the close-button click.
My question is: Since these events take place in the tab item class
itself, how do i send them back to the tab-bar class so that it can be
notified that a tab has been clicked (or closed) and take the
appropriate action (select the tab, or close the tab/remove from
array).
Many thx for any advice,
=========================================
Duncan Campbell
http://www.duncanandsarah.com/duncan
=========================================
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden