• 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: Making my own constants for Cocoa structs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making my own constants for Cocoa structs


  • Subject: Re: Making my own constants for Cocoa structs
  • From: Stephane Sudre <email@hidden>
  • Date: Fri, 3 Aug 2007 17:49:03 +0200


On 3 août 07, at 17:15, Paul Bruneau wrote:

Please forgive if this is too simple for this list, but I have been googling this for an hour with no success.

How best do I make a constant that is one of the Cocoa structure types such as NSSize or NSRect?

I have a default size I want to have available throughout a class. A perfect example of an existing one is NSZeroSize. How do I make my own constant size (or rect) like that?

Thank you!



#import <Foundation/Foundation.h>

extern const NSRect myConstRect;

--------8<-----------8<----------8<----------

#import "MtConstantPrototypeHeader.h"

const NSRect myConstRect={1,2,3,4};


??

_______________________________________________

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: Making my own constants for Cocoa structs
      • From: Paul Bruneau <email@hidden>
References: 
 >Making my own constants for Cocoa structs (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: NSTableView searching and predicates
  • Next by Date: Re: Making my own constants for Cocoa structs
  • Previous by thread: Making my own constants for Cocoa structs
  • Next by thread: Re: Making my own constants for Cocoa structs
  • Index(es):
    • Date
    • Thread