--Jens {via iPad}

On Apr 14, 2010, at 9:48 PM, Ron Fleckner <ronfleck...@ozemail.com.au> wrote:

> 
>> NSRect r={{NSMaxX(w)-96, NSMaxY(w)-ToolbarHeightForWindow(relativeToWindow) 
>> -        titleBarHeight(relativeToWindow)-24},
>>      {256, 64}};
> 
> NSRect r = NSMakeRect(...   );

The original syntax is correct too. Its using regular C syntax for initializing 
a struct literal.

> 
>> f.origin.x=4;
>> 
>> f.origin.y=4;
>> f.size.width=128;
>> f.size.height=32;
> 
> How is 'f' created? Is 'f' valid?

f must be an NSRect, so it doesn't get created, and those statements fully 
initialize it.

> 
>> 
>> [[window contentView] addSubview:textInfo]

Try calling -setNeedsDisplayInRect: f on the superview to get the subview to be 
drawn.

--Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to