• 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: Problem when overriding new Apple methods with my categories, what is the best solution?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem when overriding new Apple methods with my categories, what is the best solution?


  • Subject: Re: Problem when overriding new Apple methods with my categories, what is the best solution?
  • From: Mike Blaguszewski <email@hidden>
  • Date: Fri, 15 Dec 2006 19:03:52 -0500

If you're looking for a way to run code when a framework is loaded, you can use the "Initialization Routine" target setting for this. Just specify a C function in the framework, with a leading underscore. (Since it's a linker setting, it wants the raw linker symbol).

Another approach to your problem might be rename your methods, and then override -doesNotRecognizeSelector: to call through to them if they don't exist. That may be almost as shady as overriding +initialize, though.

--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Disabling checkboxes in NSTableView
  • Next by Date: Re: Database Application?
  • Previous by thread: Re: Problem when overriding new Apple methods with my categories, what is the best solution?
  • Next by thread: NSConcreteMutableData and valueForKey
  • Index(es):
    • Date
    • Thread