• 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: BOOL returned via -performSelctor: not BOOL on 64-bit system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BOOL returned via -performSelctor: not BOOL on 64-bit system


  • Subject: Re: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • From: James Bucanek <email@hidden>
  • Date: Tue, 8 Jun 2010 11:23:55 -0700

Alexander Heinz <mailto:email@hidden> wrote (Tuesday, June 8, 2010 10:53 AM -0400):

Alternatively, if you can alter the method being called, (which I assume you can, since you posted the source) you could change the methods to return an NSNumber-wrapped boolean value, rather than a scalar value. (Standard "written-in-Mail" warning applies)

Alexander,

That's an excellent suggestion and I think I'll adopt it (or something close to it).

I don't want to rewrite the shouldCancelAction, shouldHoldActions, etc. because those get call from a lot of other places and having them return NSNumber would be awkward. But a separate wrapper method that tests the same condition and returns it as an NSNumber would fix this nicely.

Thanks,

James

--
James Bucanek

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >Re: BOOL returned via -performSelctor: not BOOL on 64-bit system (From: Alexander Heinz <email@hidden>)

  • Prev by Date: Re: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • Next by Date: Re: Erasing drawn content
  • Previous by thread: Re: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • Next by thread: QuickTime web browser plugin - get current timecode
  • Index(es):
    • Date
    • Thread