Georg Seifert wrote:
I have a old project with a big nib file and it seems that somewhere is a key equivalent defined for "ctrl+left cursor key". If I press "ctrl+left cursor key" nothing happend (option+left and everything else works fine).
Do you want to know what element has the key-equivalent "ctrl+left cursor key" assigned to it? Store your big nib as an xib file and search it as a text file.
The grep pattern to search for appears to be NSKeyEquiv. You will have to decipher the output, and narrow it down further, but if the problem is "Where is this key-equiv assigned, so I can figure out its responder chain or maybe remove the key-equiv", this is probably how I'd start searching for it.
On second thought, I'd probably start by creating a new Cocoa Application project with xib, add a key-equivalent of "ctrl+left cursor key" to an easily recognized element, such as the "Open" menu- item of the File menu, then find that element in the xml. That should tell me what the other NSKeyEquiv values will be when "ctrl +left cursor key" is the assigned key-equivalent, which would be very useful when doing the search.
This might even simplify things so simply using TextEdit.app to open the xib file (which is xml) and searching for the particular patterns identified earlier would tell me which element of the original big- nib-file has that key-equiv assigned to it.
You might also find the 'ibtool' command useful, or a nib-to-code tool like nib2objc:
http://kosmaczewski.net/2009/03/17/nib2objc/ -- 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