• 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: Storing 'clue' in NSViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing 'clue' in NSViews


  • Subject: Re: Storing 'clue' in NSViews
  • From: Dominik <email@hidden>
  • Date: Wed, 9 Feb 2005 19:13:59 +0100

*blush* :D

Am 09.02.2005 um 17:03 schrieb Jonathan E. Jackel:

You can set the tag of a button in IB. Use the "Attributes" view (cmd-1).
Jonathan


-----Original Message-----
From: cocoa-dev-bounces+jonathan=email@hidden
[mailto:cocoa-dev-bounces+jonathan=email@hidden]On Behalf
Of Dominik
Sent: Wednesday, February 09, 2005 10:01 AM
To: email@hidden
Subject: Re: Storing 'clue' in NSViews



The control this applies to is an NSButton and using setTag is not really... convenient. Is nothing like this available in IB???

Am 09.02.2005 um 15:45 schrieb Ricky Sharp:


On Wednesday, February 09, 2005, at 08:38AM, Dominik <email@hidden> wrote:

I have a NSView bound to an action exposed in the controller. The
sender is given but I would like add. info (say a constant
number/string)
Is it possible to store such a constant with a view?

What specifically do you have? Is this an actual instance of NSView or a derived class? Note that if it inherits from NSControl, you can set that control's tag with setTag:

If you have your own custom NSView subclass, just add whatever
property you need and create the appropriate accessors.

--
Rick Sharp
Instant Interactive(tm)


May you always find water and shade (WoT)
Dominik

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


May you always find water and shade (WoT)
Dominik

_______________________________________________
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


References: 
 >RE: Storing 'clue' in NSViews (From: "Jonathan E. Jackel" <email@hidden>)

  • Prev by Date: spawing a server...
  • Next by Date: Re: Serious crash from setNeedsDisplayInRect:
  • Previous by thread: RE: Storing 'clue' in NSViews
  • Next by thread: Sample code won't link now that I have updated to panther
  • Index(es):
    • Date
    • Thread