openEditorForObject ?
openEditorForObject ?
- Subject: openEditorForObject ?
- From: Wagner Truppel <email@hidden>
- Date: Wed, 2 Aug 2006 16:29:10 -0700
Hello...
I'm still struggling to have my custom IB palette to open the
standard inspector for a (standard) "sub-control" of the custom
widget that I'm making into a palette. After digging for a while, I
thought the following construct (appearing in the implementation file
for my custom widget's inspector) would do it:
[[self inspectedDocument] openEditorForObject :object];
Here, self is a reference to the inspector object for my custom
widget and object is a reference to the standard sub-control of my
widget which I'm trying to let the user edit.
The problem is that this line of code is having no effect whatsoever.
Absolutely nothing happens, bad or good.
I really could use some expert advice here at this point. I've
searched the built-in documentation for both XCode and IB, searched
this list's archives, googled around, but have found nothing that
would help.
Here's a summary of what I'm trying to accomplish, in a concrete made-
up example:
I have a custom widget built from standard controls, one of which is
a button. When the user drags a prototype of my custom widget from
the palette to a window in his nib file and then clicks on the button
in question, I would like to allow the user to edit that button's
properties. For that, I figured I'd programatically show the
inspector for NSButton when the user clicks on said button.
Now, I know this is possible. After all, when we drag an NSTabView
into a nib's window and click on one of the tabs, a different
inspector shows up which lets us change that tab's title, among other
things. How is that done?
Any help is appreciated.
Thanks.
Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden