• 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: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)


  • Subject: Re: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)
  • From: vincent habchi <email@hidden>
  • Date: Tue, 6 Jul 2010 22:28:32 +0200

Le 6 juil. 2010 à 21:59, Matt Neuburg a écrit :

> On Tue, 6 Jul 2010 20:31:06 +0200, vincent habchi <email@hidden> said:
>> BTW, another unrelated question. I have a method that takes an NSPoint as an
> argument. I call it this way:
>>
>> [foo point:NSMakePoint(x, y)]
>>
>> and get an analyzer warning: "Pass-by-value argument in function call is
> undefined".
>
> How about passing an NSValue? Surely valueWithPoint: must be good for
> something... :) m.

Geez, I just realize I have been browsing the NSValue page for iPhone OS since the beginning, and iPhone OS (iOS) has no +valueWithPoint. I feel Apple should one way or an other (e.g. by changing the background) catch the attention of the reader about the OS that the current documentation page applies to (is that correct English? I wonder).

So, okay, but why should I incur the penalty of creating an object while passing a structure (even by value) is perfectly valid since K&R C? I don't understand the meaning of the warning.

Vincent_______________________________________________

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: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: NSTextField fieldeditor subclass example? (and an unrelated other inquiry) (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Finder view in an application
  • Next by Date: Re: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)
  • Previous by thread: Re: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)
  • Next by thread: Re: NSTextField fieldeditor subclass example? (and an unrelated other inquiry)
  • Index(es):
    • Date
    • Thread