Re: Making my own constants for Cocoa structs
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