• 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: Unable to set View Tag in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to set View Tag in IB?


  • Subject: Re: Unable to set View Tag in IB?
  • From: Jonathan Mitchell <email@hidden>
  • Date: Mon, 06 Apr 2015 15:56:46 +0100

> On 6 Apr 2015, at 15:47, Dave <email@hidden> wrote:
>
> Hi,
>
> I’ve got a Window NIB that has a Content View that is Subclassed from NSView - LTWContentView. For some reason XCode/IB won’t let me set the tag property. Does this mean I can’t use it to identify Views in this manner?
>
Tag is a readonly property for views. NSControl implements setTag:
If you defined a setNumberTag: method on your custom view you could use the user defined attributes in the NIB identity inspector to initialise the tag.

You could also use the identity property.
Also see http://stackoverflow.com/questions/8492918/unique-id-on-nsviews

HTH

Jonathan


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

This email sent to email@hidden


  • Follow-Ups:
    • Re: Unable to set View Tag in IB?
      • From: Dave <email@hidden>
References: 
 >Unable to set View Tag in IB? (From: Dave <email@hidden>)

  • Prev by Date: Unable to set View Tag in IB?
  • Next by Date: Launch images for a iOS7/8 project doesn't shown
  • Previous by thread: Unable to set View Tag in IB?
  • Next by thread: Re: Unable to set View Tag in IB?
  • Index(es):
    • Date
    • Thread