• 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: Passing argument with different width due to prototype: warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing argument with different width due to prototype: warning


  • Subject: Re: Passing argument with different width due to prototype: warning
  • From: Jack Repenning <email@hidden>
  • Date: Tue, 13 May 2008 18:27:46 -0700

On May 13, 2008, at 6:10 PM, R.L. Grigg wrote:

NSSocketPort *socketPort=[[NSSocketPort alloc] initWithTCPPort:1234];
. . .
warning: passing argument 1 of 'initWithTCPPort:' with different width due to prototype


I checked the NSPort header file for the NSSocketPort method prototype, /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ Foundation.framework/Versions/C/Headers/NSPort.h:

- (id)initWithTCPPort:(unsigned short)port;

What am I doing wrong?

Have you tried this?

NSSocketPort *socketPort=[[NSSocketPort alloc] initWithTCPPort: (unsigned short)1234];


-==- Jack Repenning email@hidden Project Owner SCPlugin http://scplugin.tigris.org "Subversion for the rest of OS X"


_______________________________________________

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: Passing argument with different width due to prototype: warning
      • From: "R.L. Grigg" <email@hidden>
References: 
 >Passing argument with different width due to prototype: warning (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: Passing argument with different width due to prototype: warning
  • Next by Date: Re: Xcode-like window menu?
  • Previous by thread: Re: Passing argument with different width due to prototype: warning
  • Next by thread: Re: Passing argument with different width due to prototype: warning
  • Index(es):
    • Date
    • Thread