Re: Dynamically alterting objects in a view
Re: Dynamically alterting objects in a view
- Subject: Re: Dynamically alterting objects in a view
- From: Hank Heijink <email@hidden>
- Date: Wed, 4 Oct 2006 14:25:36 -0400
From the -setFrame: documentation:
This method, in setting the frame rectangle, repositions and resizes
the receiver within the coordinate system of its superview. It
neither redisplays the receiver nor marks it as needing display. You
must do this yourself with display or setNeedsDisplay:.
Same for setBounds. Did you call [myTable setNeedsDisplay:YES]?
Hank Heijink
www.hankheijink.com
email@hidden
On Oct 4, 2006, at 2:15 PM, Aychamo Aychamo wrote:
Hello,
I have an NSTableView in a window, and I'm trying to change it's
location and it's width & height (the same way you would in Interface
Builder, where you pick the x,y coordinates, and the height and
width.) I'm have extraordinary difficulty in doing so.
I've read the View Programming Guide, and I've tried a number of
things, including setting the Table's frame and bounds. I have the
table's outlet set to myTable, and I try:
[myTable setFrame: NSMakeRect (0,0,500,500)];
or
[myTable setBounds: etc..];
And it won't actually change the x loc/y loc/width/height of the
NSTableView on the window.
Does anyone have any advice?
Thank you
AA
_______________________________________________
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
_______________________________________________
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