• 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: 3 IB Qs: actions; view tags; NSWindow setFrame
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3 IB Qs: actions; view tags; NSWindow setFrame


  • Subject: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
  • From: David Remahl <email@hidden>
  • Date: Fri, 21 Feb 2003 18:18:57 +0100

fredagen den 21 februari 2003 kl 18.06 skrev Stiphane Sudre:

>>> 2) No tags for custom views?
>>> Interface Builder doesn't allow a "tag" value to be assigned to a
>>> custom view.
>>> The Attributes panel is empty and marked as "Not Applicable". Tags
>>> are part of
>>> NSView so it seems that they *could* be applied. Just an oversight?
>>
>> Report it as a bug with Apple.
>
> A NSView does not have any tag data just a method which returns -1.
>
> Since you're using the NSView inspector in IB for your custom view,
> it's correct that the tag part is disabled.

Then why is it in the header? It doesn't serve backwards compatibility
at all to have these:

- (id)viewWithTag:(int)aTag;
- (int)tag;

Why isn't this API functional in NSView? It wouldn't take a lot of
effort for apple to provide a default implementation and the only
overhead would be the storage for the tag.

/ Rgds, David
_______________________________________________
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.

  • Follow-Ups:
    • Re: 3 IB Qs: actions; view tags; NSWindow setFrame
      • From: Vince DeMarco <email@hidden>
    • Re: 3 IB Qs: actions; view tags; NSWindow setFrame
      • From: Stéphane Sudre <email@hidden>
    • Re: 3 IB Qs: actions; view tags; NSWindow setFrame
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Re: 3 IB Qs: actions; view tags; NSWindow setFrame (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
  • Next by Date: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
  • Previous by thread: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
  • Next by thread: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
  • Index(es):
    • Date
    • Thread