Chilton Webb wrote:
It *would* be useful, but IB doesn't let you set it to a string in
Cocoa. It's limited to numeric values, which makes it less useful
for humans.
For a bit of perspective, this is doable in *CARBON* apps, via the
'Command' attribute in Interface Builder. You can only use 4
characters, but it's damned useful. It's commonly used to create
interfaces that don't require hard linkage between the code and the
view. Somewhat ironically, despite that MVC is the law of the land
in Cocoa, this option is not available to Cocoa apps.
I was sure I was mistaken about this! Any other suggestions?
Create an app where you enter the 4-char text you want, and it shows
you the decimal number and even puts it on the pasteboard, so you
simply paste it in IB. The same app can have the inverse function:
enter or paste a decimal number, see the 4-char code.
This is surprisingly close to the Currency Converter illustrative app
for introducing Cocoa and IB. It shouldn't be that hard to build.
A useful improvement would make it work via the Services menu (read
current selection as input, convert to alternate form, paste).
-- GG
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com