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

Re: problem with respondsToSelector


  • Subject: Re: problem with respondsToSelector
  • From: Marcel Weiher <email@hidden>
  • Date: Sat, 27 Mar 2004 17:12:33 +0000

On 27 Mar 2004, at 16:32, Mark Munz wrote:

if ( [NSAttributedString respondsToSelector: @selector(initWithDocFormat:documentAttributes:)] )
{
// actually read in the document
}

seems to always return false (thus the document never gets read in).

You are sending the message to the class. The class doesn't respond to this message, instances of it do.

+instancesRespondToSelector: is probably your friend.

Marcel


--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
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: 
 >problem with respondsToSelector (From: Mark Munz <email@hidden>)

  • Prev by Date: Linker error message "ld: internal error: get_string_block() called..."
  • Next by Date: Re: Question about Deprecated Methods
  • Previous by thread: problem with respondsToSelector
  • Next by thread: Linker error message "ld: internal error: get_string_block() called..."
  • Index(es):
    • Date
    • Thread