Re: NSBox Title Position
Re: NSBox Title Position
- Subject: Re: NSBox Title Position
- From: Steven Spencer <email@hidden>
- Date: Mon, 6 Dec 2004 23:50:48 +0000
For the record, a solution - add the following to a sub-class of NSBox.
- (void)drawRect:(NSRect)aRect
{
NSRect rct = [self titleRect];
rct.origin.x = 0.0;
NSString *str = [self title];
[self setTitle:@""];
[super drawRect:aRect];
[self setTitle:str];
[[self titleCell] drawWithFrame:rct inView:self];
}
- Steve Spencer
_______________________________________________
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