RE: NSComboxBox alternative
RE: NSComboxBox alternative
- Subject: RE: NSComboxBox alternative
- From: FirstName LastName <email@hidden>
- Date: Sun, 20 Feb 2011 19:57:40 +0000
- Importance: Normal
> Date: Sat, 19 Feb 2011 12:19:50 -0800
> Subject: Re: NSComboxBox alternative
> From: email@hidden
> To: email@hidden
> CC: email@hidden
>
> On Sat, Feb 19, 2011 at 12:15 PM, FirstName LastName
> <email@hidden> wrote:
> > I think the NSTableView in not retractable. It wastes space to have the whole history always displayed when in many cases the user will just choose the most recently used path. Also, multiple NSPathControls in popup mode is not the purpose of this UI. The idea is to choose a path but to keep a history of previously chosen ones. An NSOpenPanel activated via a nearby button will allow to choose a new path.
>
> So are you going to allow people to type paths into the field? If not,
> then why not just go for a popup list of N recently-used paths, with
> an item at the bottom to "Choose path…" that spawns the NSOpenPanel?
>
Yes that's exactly the idea, just that I'm using the NSComboBox and an NSButton instead. If the popup list doesn't suffer from the same problem (i.e. Paths filenames and extensions clipped on the right) I'll happily switch. I guess you are talking about a pull-down list.
> > What do you think about using an NSFormatter to right align the paths in the list? Is it possible?
>
> That's not what NSFormatter's good at. If you stick with the
> NSComboBox approach, you'd probably want to subclass NSComboBoxCell
> instead.
>
Any pointers regarding subclassing NSComboBoxCell for this purpose?
> --Kyle Sluder
_______________________________________________
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