• 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: string convertion: converting getter name to setter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string convertion: converting getter name to setter


  • Subject: Re: string convertion: converting getter name to setter
  • From: steph thirion <email@hidden>
  • Date: Fri, 5 Sep 2008 04:51:16 +0200


On Sep 5, 2008, at 3:34 AM, Phil wrote:

I assume you want to do more with the selector than just invoke
it---otherwise you can just use KVC and save yourself some grief.


Actually, that's all I want!

I'm working on a class that will manage transitions of properties. It's for a game on a slower device, so I need the less costly solution.

I was trying to go with performSelector, but just a while ago I was stunned to find out there's no way to pass along an argument that is a basic type. Same with NSInvocation, AFAIK you can only pass objects. And I'd rather avoid having NSNumber instances instead of simply int variables just because of that. Using an instance where I simply need an int or a float seems a waste of memory and performance, correct me if I'm wrong.

Then there's KVC. Which I haven't been able to pull out because of some int / id problems in arithmetics that I couldn't understand yet. But the concept of KVC seems like it could be costly, at least more than pointing directly to the right door, like performSelector or NSInvocation does.

I'm a bit confused, I thought I was getting into something simple to resolve and it's growing into a big monster. Help would be deeply appreciated.

(btw thanks all for the input on the string conversions.. I might look into it once I get past this)
_______________________________________________


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


  • Follow-Ups:
    • Re: string convertion: converting getter name to setter
      • From: "Sherm Pendley" <email@hidden>
    • Re: string convertion: converting getter name to setter
      • From: Charles Steinman <email@hidden>
    • Re: string convertion: converting getter name to setter
      • From: Phil <email@hidden>
References: 
 >string convertion: converting getter name to setter (From: steph thirion <email@hidden>)
 >Re: string convertion: converting getter name to setter (From: Phil <email@hidden>)

  • Prev by Date: Re: string convertion: converting getter name to setter
  • Next by Date: Animated images in a NSTableView
  • Previous by thread: Re: string convertion: converting getter name to setter
  • Next by thread: Re: string convertion: converting getter name to setter
  • Index(es):
    • Date
    • Thread