Swapping 'small' controls for 'mini' controls
Swapping 'small' controls for 'mini' controls
- Subject: Swapping 'small' controls for 'mini' controls
- From: Ken Tabb <email@hidden>
- Date: Wed, 23 Jun 2004 15:36:26 +0100
Hi folks,
I have an inspector window that has loads of settings, and personally I
like to have tiny ('mini') checkboxes / popup menus / text etc. so that
it takes up minimal screen real estate, allowing maximum document
space. However some of the users have moaned (understandably) that it's
too tiny for them to use/see. So I'd like the app to be able to 'swap'
a small version of the palette for a mini version. Crazy I know.
As I see it my options are:
[1] Programmatically reset each NSControl in the window.
Foreseeable problems:
* there doesn't seem to be a way of programmatically getting the
metrics for eg. spacing between mini controls vs. spacing between small
controls
[2] Have a duplicate nib (or duplicate views within a single nib) with
mini versions of everything.
Foreseeable problems:
* duplication of work (making a small one and a mini one of every view)
* room for error (due to duplication of work)
* might (and I'm guessing here) make using the controller layer more
tricky if I only know at runtime which view to be talking to, or need
to swap them during runtime (when the user selects "small")?
Does anyone know of an easier way to achieve this? Maybe I'm missing
something obvious. And the first to say "buy a bigger monitor" gets
slapped 8^)
Thanks in advance for any help you can give,
Ken
- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Technical bloke (C, C++, Obj-C, Java) - Health & Human
Sciences
Machine Vision & Neural Network researcher bloke - Computer Science Dept
University of Hertfordshire, UK
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.