• 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: Ricky Sharp <email@hidden>
  • Date: Wed, 09 Feb 2005 08:45:46 -0600

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)

 _______________________________________________
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

  • Follow-Ups:
    • Re: Storing 'clue' in NSViews
      • From: Dominik <email@hidden>
References: 
 >Storing 'clue' in NSViews (From: Dominik <email@hidden>)

  • Prev by Date: Storing 'clue' in NSViews
  • Next by Date: Re: Storing 'clue' in NSViews
  • Previous by thread: Storing 'clue' in NSViews
  • Next by thread: Re: Storing 'clue' in NSViews
  • Index(es):
    • Date
    • Thread