|
|
How to let NSToolBar itme can't be customizable
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
Hi,
When tool bar customizatio palette is running. we can drag and drop his item to custom the tool bar. I have one request. i want one item can't be drag. this way like the XCode IDE, some item can't be customzable. How to relize .thanks for any idea and help
--ann
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
What items are you talking about? All the toolbar items in Xcode seem to be customizable to me.
I don't think what you are asking is possible (short of maybe some icky subclassing on NSToolbar). You can, of course, disallow any customization by sending -[NSToolbar setAllowsUserCustomization:NO], but I don't think you can have it only disallow customization for certain items and not others.
Why do you want to do this?
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
Sorry for the confuse. I realy want to disallow customization for certain items on the toolbar,not the all toolbar.
For XCode, i think you use the default setting. Please in XCode Preferences->General->Layout, choose All-in-One. so, open one porject. you can find the Page item disallow customization .
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
Ah, I didn't know about that. Yeah, class-dump reveals that Xcode is using a custom subclass of NSToolbar called PBXToolbar, so it's probable that they wrote the code to disable the customization of that item themselves, unless I'm missing something somewhere.
Why exactly do you want to do this?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|