Re: Where is close/cancel icon used in search field & Safari etc.
Re: Where is close/cancel icon used in search field & Safari etc.
- Subject: Re: Where is close/cancel icon used in search field & Safari etc.
- From: Randall Meadows <email@hidden>
- Date: Wed, 8 Oct 2008 11:12:31 -0600
On Oct 8, 2008, at 10:24 AM, David wrote:
Hello,
I'd like to have a button that looks like the close or cancel icon
that is often present in Cocoa applications, but I can't find the
icon. I'm surprised it doesn't show up as a choice in interface
builder.
Some places where this icon shows up includes:
- When you have multiple tabs in Safari, its the X in a circle by the
tab that you use to close the tab.
- In a standard Cocoa search field used in Finder, if you enter
something and want to cancel the search it shows up.
In my application a user can initiate a long running activity that I'd
like to allow them to stop. I could put a STOP icon on the toolbar, or
I was thinking of using the X in a circle icon next to a spinning
progress indicator. I'm not sure which approach is more typical in Mac
OS X.
You can access this via IB; you can set a view's image to
NSStopProgressFreestandingTemplate (or NSStopProgressTemplate for just
the X part). I assume (although haven't tried) that you can access
this also through NSImage by name.
_______________________________________________
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