struct into a pasteboard
struct into a pasteboard
- Subject: struct into a pasteboard
- From: Lorenzo <email@hidden>
- Date: Sat, 22 Dec 2007 20:46:43 +0100
Hi,
I have to put this struct into a pasteboard.
Since it contains an NSString it seems that I cannot convert it to an
NSValue nor NSData in one shot only. Of course I know that I can put any
value manually into an NSDictionary. The problem is that if I modify the
struct I wouldn't like to go and modify the dictionary. I would like to get
this done automatically. Is a way to do that?
typedef struct
{
NSString *mapPath;
BOOL mapOn;
int mapFillMode;
NSRect mapRect;
NSSize mapTile;
float mapTileGap;
BOOL mapTileGapExternal;
float mapAngle;
NSSize mapScale;
/////////// 30 values more....
} PKTex;
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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