widget 'groups'
widget 'groups'
- Subject: widget 'groups'
- From: Hamish Allan <email@hidden>
- Date: Thu, 20 Mar 2003 17:58:55 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello list members,
I've been trying to write a substitute for NIAuthorizationView (the
'Click the lock to make changes' widget). Treating it as two separate
components is all well and good, but eventually I'd like to end up with
an atomic widget with an IB palette and inspector etc.
Although there are plenty of examples of IB palettes in the developer
tools examples, none of them quite achieve what I want to do. In the
bMoviePalette, for instance, the SoundFileWell is simply an
NSImageView, and messing around with it in IB can cause it to lose its
graphic. Similarly, the ProgressViewPalette components can be separated
when the ProgressView has been dropped.
I'm thinking that it'll probably end up that my widget looks like a
custom view when dropped, which is fine (although not ideal). But I'd
also like some advice on how best to implement the custom view. I'm
thinking that perhaps I should create an NSButtonCell and an
NSTextFieldCell as member variables of the NSView subclass and then
forward drawing calls to them. But perhaps I should use an NSButton and
an NSTextField instead? Or perhaps I should create a nib with a single
panel containing a button and some text on it, and attach that to my
custom view somehow?
Does anyone have any advice on this matter?
Thanks in advance,
Hamish
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
iD8DBQE+egFi6gc2d//pELYRAtysAJ9eG/Tp/Pszx5QlMiNF0nnUbseM+ACfcODy
LsWYR7sk+e1as4Zwaa4gnYI=
=ARWY
-----END PGP SIGNATURE-----
_______________________________________________
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.