• 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: NSSet designated initializer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSet designated initializer


  • Subject: Re: NSSet designated initializer
  • From: Charilaos Skiadas <email@hidden>
  • Date: Wed, 27 Jul 2005 09:51:06 -0500

On Jul 27, 2005, at 9:36 AM, Greg Hurrell wrote:

Can someone tell me what the designated initializer for the NSSet class is?

I know it's a class cluster and I want to override the initializer in my subclass so that I can guarantee that my own concrete subclass gets instantiated and not some other class. The only reference I can find is a bit of really old NeXT documentation that says that the designated initializer is:

- (id)initWithObjects:(id)anObject, ...

Can anyone confirm that this is still the case in Cocoa?

Whether it is or not, I feel it should be stated in the documentation. I would file a bug against it. I actually just did, but maybe more will help.


Isn't there a way to find out, by just creating a test app creating a set and going through a backtrace? Shouldn't that tell you which method is ultimately called? I guess I haven't really tried, so I don't know if it will actually work.
And for the record, writing a category is not an acceptable alternative to creating the subclass in this case.

Greg

Haris


_______________________________________________ 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: NSSet designated initializer
      • From: Greg Hurrell <email@hidden>
References: 
 >NSSet designated initializer (From: Greg Hurrell <email@hidden>)

  • Prev by Date: NSSet designated initializer
  • Next by Date: Image transition
  • Previous by thread: NSSet designated initializer
  • Next by thread: Re: NSSet designated initializer
  • Index(es):
    • Date
    • Thread