• 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
NSController and NSRect help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSController and NSRect help


  • Subject: NSController and NSRect help
  • From: Freddie Tilley <email@hidden>
  • Date: Sat, 18 Dec 2004 10:06:11 +0100

Howdy, I've got a problem

Is there a way to access specific elements of let's say an NSRect struct
with NSController without having to write wrapper functions in the object
or Subclassing NSController, so I can put the x, y, width and the height in a text field


so I can have keep my object clean like:

-(NSRect)frame
-(void)setFrame:(NSRect)frame;

instead of adding this just to use NSController:

-(float)frameOriginX;
-(void)setFrameOriginX:(float)x;
-(float)frameOriginY;
-(void)setFrameOriginY:(float)y;
-(float)frameWidth;
-(void)setFrameWidth:(float)width;
-(float)frameHeight;
-(void)setFrameHeight:(float)height;

Thanks in Advance

Freddie Tilley


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Cocoa-dev Digest, Vol 1, Issue 430
  • Next by Date: Re: Bindings problem...
  • Previous by thread: Re: Cocoa-dev Digest, Vol 1, Issue 430
  • Next by thread: Can't use @count with bindings
  • Index(es):
    • Date
    • Thread