Re: Placing an Image next to a UI element
Re: Placing an Image next to a UI element
- Subject: Re: Placing an Image next to a UI element
- From: Fritz Anderson <email@hidden>
- Date: Fri, 25 Nov 2011 11:55:15 -0600
On 25 Nov 2011, at 7:45 AM, David Mirabito wrote:
> I am trying to place an InvalidData icon next to offending input elements (popup menus, text fields, etc). I calculate the position of the new NSImageVIew based on the frame of the UI element. Keep it's vertical placement, and shift the icon to the left if it, plus a small constant spacing amount, and make square.
Also, audit your call to -[NSImageView setImageAlignment:] (which you omit) to see if it places your image in the annotation view where you want it.
— F
_______________________________________________
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