• 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: How to get a Category method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get a Category method?


  • Subject: Re: How to get a Category method?
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 15 Mar 2004 01:51:08 +0100

Rosyna,

On Monday, Mar 15, 2004, at 01:38 Europe/Prague, Rosyna wrote:

...but if I call class_getInstanceMethod(NSClassFromString(@"NSMenu"), NSSelectorFromString(@"isKindOfSortOfLikeThisMenuHere:") it returns NULL...

well, perhaps the function class_getInstanceMethod does not take categories into account? Sounds quite strange, but who knows: to be frank, I don't recall reading of it in the documentation, and sorry, am too lazy to search for it the very now ;)

Anyway, it's always much better to stick with the hi-level OO API (unless you explicitly need to go lower, of course). See my previous mail with an usage of the standard methodForSelector:/instanceMethodForSelector: messages.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.


References: 
 >Re: How to get a Category method? (From: Rosyna <email@hidden>)

  • Prev by Date: Re: How to get a Category method?
  • Next by Date: iTunes plugin/extension project
  • Previous by thread: Re: How to get a Category method?
  • Next by thread: Re: How to get a Category method?
  • Index(es):
    • Date
    • Thread