• 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: Question about categories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about categories


  • Subject: Re: Question about categories
  • From: Andrew Merenbach <email@hidden>
  • Date: Sat, 2 Sep 2006 14:25:27 -0700

Hi, Alan. Sorry to hear about your negative experiences, but anyway, here's what you'll need to do:

A category *cannot* add onto an existing method; it can only replace it. If you wish to extend the initializer, you will need to make a subclass instead.

Hope that this helps.  Cheers!

Regards,
	Andrew

On 2 Sep 2006, at 14:12, Alan Smith wrote:

Hi everyone,

I'm making a category on a class and want to add onto the classes
designated initializer method.
I tried overriding it but then I can't use something like this:

if (self = [self init...)

Because that would create an endless loop.

My guess is that this is "basic" and that all of you will flip out on
me, saying I should RTFM or that I lack the basic knowledge and would
"benefit" from reading up on my Obj-C. Well, if I knew where to look
for the answer to this I wouldn't be asking here and, isn't the point
of this list to get help?

I apologize for that but I had to get it out of my system, I've had
some bad experiences here recently.
Peace, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40ucla.edu


This email sent to email@hidden

_______________________________________________ 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: Question about categories
      • From: "Alan Smith" <email@hidden>
References: 
 >Question about categories (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Question about categories
  • Next by Date: bounds value from NSBezierpath too small?
  • Previous by thread: Question about categories
  • Next by thread: Re: Question about categories
  • Index(es):
    • Date
    • Thread