• 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
Category conflicts with Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Category conflicts with Tiger


  • Subject: Category conflicts with Tiger
  • From: David Sinclair <email@hidden>
  • Date: Sat, 7 May 2005 12:25:01 -0700

I have a large collection of categories that I use for all my apps, extending the Cocoa classes. (I plan on releasing them publicly when I get time.)

Reading through the release notes for Tiger, I've noticed several new methods that conflict with my categories. For example, I have a NSPopUpButton category that adds the following method, which conflicts with a new Tiger method:

	- (int)selectItemWithTag:(int)aTag;

This one isn't too difficult to resolve (I just need to rename it to avoid the conflict, with corresponding changes to existing code), but there are others that are harder to resolve.

One such is a NSImageView category that implements -cut:, -copy:, -paste:, and -delete:. I see that NSImageView now implements those natively. I can't simply rename my editions, since then they wouldn't be used, and can't remove them, as then those functions wouldn't work when running under Panther. What is the best way to resolve this conflict? Would calling -setAllowsCutCopyPaste: with NO disable Cocoa's implementation but let mine continue, or would mine fail too (since it is a category rather than a subclass). Is implementing them in a subclass of NSImageView instead of a category the only feasible solution?

--

David Sinclair, Dejal Systems, LLC - email@hidden
Custom Mac OS X development - http://www.dejal.com/consulting/
Site change and failure monitor tool - http://www.dejal.com/simon/
Plus other useful Mac products - http://www.dejal.com/

_______________________________________________
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: Category conflicts with Tiger
      • From: Greg Parker <email@hidden>
    • Re: Category conflicts with Tiger
      • From: j o a r <email@hidden>
    • Re: Category conflicts with Tiger
      • From: Justin Spahr-Summers <email@hidden>
    • Re: Category conflicts with Tiger
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: NSForm titles randomly bold themselves?
  • Next by Date: Re: Category conflicts with Tiger
  • Previous by thread: Caching an NSCachedImageRep?
  • Next by thread: Re: Category conflicts with Tiger
  • Index(es):
    • Date
    • Thread