NSTextView - Having to call setFrame twice to work?
NSTextView - Having to call setFrame twice to work?
- Subject: NSTextView - Having to call setFrame twice to work?
- From: Seth Willits <email@hidden>
- Date: Wed, 20 May 2009 21:47:54 -0700
This is as simple as it gets...
textView = [[NSTextView alloc] initWithFrame:NSMakeRect(0, 0, 400,
300)];
// [textView frame] is {0, 0, 400, 300}
[textView setFrame:NSMakeRect(100, 100, 500, 400)];
// [textView frame] is {100, 100, 500, 300}
[textView setFrame:NSMakeRect(100, 100, 500, 400)];
// [textView frame] is {100, 100, 500, 400}
What gives?
--
Seth Willits
_______________________________________________
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