Re: Hooking up Help menu item

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:40 pm, Roland King wrote: > This is the second responder chain issue which has confused me, another menu > item had to be hooked up to point directly to an NSView subclass because > sending that to First Responder didn't work either. I eventually decided the > window wasn

Re: Hooking up Help menu item

2014-02-15 Thread Roland King
> On 15 Feb, 2014, at 18:42, Graham Cox wrote: > > The application delegate is after NSApplication in the responder chain, so > because -showHelp: is a method of NSApplication, the method isn't forwarded > to the delegate. That's the piece I was missing. The responder chain is barely used in

Re: Hooking up Help menu item

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:40 pm, Roland King wrote: > want the help menu item in my app to redirect to a webpage, the redirect I > can do fine, it's hooking it up confuses me. > > That menu item sends by default showHelp: to First Responder. So I wrote a > showHelp: method

Hooking up Help menu item

2014-02-15 Thread Roland King
I want the help menu item in my app to redirect to a webpage, the redirect I can do fine, it's hooking it up confuses me. That menu item sends by default showHelp: to First Responder. So I wrote a showHelp: method in the App Delegate but it doesn't get called, I still get the

Re: Search field in menu, like Help menu has

2013-06-24 Thread Jerry Krinock
d, the search field would not be able to get keystrokes. What I decided to do instead is to simply add a "Search" item to the menu. I think this will be a better user experience copying Apple's current fake "Help" menu anyhow. It took me a while to figure that thing

Re: Search field in menu, like Help menu has

2013-06-10 Thread Kyle Sluder
On Jun 9, 2013, at 10:14 PM, Jerry Krinock wrote: > So how might Apple be doing that? The same way they do the Spotlight “menu”: a borderless window that looks like a menu. Sadly, I don't know if there's a way to hook into the menu manager to get the same results in your app. But you _may_ be

Search field in menu, like Help menu has

2013-06-09 Thread Jerry Krinock
menu, like the search field in the Help menu of any Cocoa app. At least in instance (3). In Apple's document "Application Menu and Pop-up List Programming Topics" [1], it is stated that "A view in a menu item can receive all mouse events as normal, but keyboard events are no

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-07 Thread Keith Blount
the former). Very strange that it had this particular effect, and only on the use of the Help menu to open a project, but at least I've found the culprit. Thanks again for taking time to help, much appreciated! All the best, Keith - Original Message From: Kyle Sluder To: Keith Bl

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Sean McBride
On Sat, 6 Nov 2010 15:14:17 -0700, Kyle Sluder said: >herring. If something else was allocated at that address but >prematurely freed, that could be the thing that the offending code is >trying to send the -_bindingAdaptor message. Setting NSAutoreleaseFreedObjectCheckEnabled=YES and NSEnableAuto

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Keith Blount
Thanks again for your reply and help. >> #CategoryEvent TypeRefCtTimestampAddressSizeResponsible LibraryResponsible >> Caller >> 0NSMenuItemMalloc13059475443200x1a4cccd064AppKit-[NSMenu >> insertItemWithTitle:action:keyEquivalent:atIndex:] >> 1NSMenuItemFree03289974881280x1a4cccd0-64AppKit-[NSMenu

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Kyle Sluder
On Sat, Nov 6, 2010 at 1:47 PM, Keith Blount wrote: > Thanks! I just tried that but the menu item is created and destroyed by the > AppKit as far as I can see. The offending object: > > objc[88279]: FREED(id): message _bindingAdaptor sent to freed > object=0x1a4cccd0 > > Checking that object addr

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Keith Blount
Many thanks for the replies, much appreciated. >> The really strange thing is that my program has no control >> over that menu and has nothing to do with it - as I understand >> it, its population is all handled internally by NSDocumentController > Have you tried with other NSDocument-based apps?

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Kyle Sluder
On Sat, Nov 6, 2010 at 11:37 AM, Keith Blount wrote: > I can reproduce this every time myself (I've copied the backtrace at the end > of > this e-mail). And yet if you go to the File > Open Recent menu and open a > document directly from there, everything is fine - it's only when using the > Hel

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Sean McBride
On Sat, 6 Nov 2010 11:37:18 -0700, Keith Blount said: >My application is an NSDocument-based app, and my user pointed out that >he could >make my application crash every time by following this sequence: > >1) Hit shift-cmd-/ to bring up the Help menu with the search field foc

Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Keith Blount
ious I'm missing - although it's a really strange one. My application is an NSDocument-based app, and my user pointed out that he could make my application crash every time by following this sequence: 1) Hit shift-cmd-/ to bring up the Help menu with the search field focussed. 2) Ty

Cocoa Help Menu

2010-03-31 Thread Poonam Virupaxi Shigihalli
Hi, In our application we have a help menu and we are not using help viewer instead we are just loading the help files to a browser. As it is a help file,Appkit is adding a default search option. If something is searched from this field,it is searching in all the system files but i want

Re: Search menu item not appearing in Help menu in some locales

2009-05-20 Thread Oleg Krupnov
e built-in Search field > does not appear in the Help menu of my app, though it still appears in > other apps. What can be wrong with it? Thanks! > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Search menu item not appearing in Help menu in some locales

2009-05-12 Thread Oleg Krupnov
I am localizing my app into different languages, and I've noticed that in some languages (e.g. Spanish, Italian) the built-in Search field does not appear in the Help menu of my app, though it still appears in other apps. What can be wrong with it? T

Re: Telling the Help menu Spotlight search to ignore certain items

2009-01-22 Thread Keith Blount
t; From: Eric Schlegel > Subject: Re: Telling the Help menu Spotlight search to ignore certain items > To: keithblo...@yahoo.com > Cc: cocoa-dev@lists.apple.com > Date: Thursday, January 22, 2009, 6:54 PM > On Jan 22, 2009, at 6:23 AM, Keith Blount wrote: > > > Man

Re: Telling the Help menu Spotlight search to ignore certain items

2009-01-22 Thread Eric Schlegel
On Jan 22, 2009, at 6:23 AM, Keith Blount wrote: Many thanks for your reply. I'll file an enhancement request, but still looking for a solution to the problem, is there any way to be notified of when the Help menu is about to start doing this indexing? If there were, I could te

Re: Telling the Help menu Spotlight search to ignore certain items

2009-01-22 Thread Keith Blount
Many thanks for your reply. I'll file an enhancement request, but still looking for a solution to the problem, is there any way to be notified of when the Help menu is about to start doing this indexing? If there were, I could tell my dynamic menus not to rebuild themselves in that situati

Re: Telling the Help menu Spotlight search to ignore certain items

2009-01-21 Thread Eric Schlegel
On Jan 21, 2009, at 1:59 PM, Keith Blount wrote: So, my question is: is there a way of telling the Help menu to ignore certain menus when it does this search each time it is clicked on? No, there's no way to avoid indexing of your menus, sorry. Please file a feature request descr

Telling the Help menu Spotlight search to ignore certain items

2009-01-21 Thread Keith Blount
Hi, I've looked in the docs but I can't find the answer to this; I've also searched the archives but I may be using the wrong search terms. Under Leopard, when you click on the Help menu, before appearing it seems to search through all the menus of the app to see if any items ma

Re: Help Menu

2008-12-04 Thread David Blanton
tried searching this list's archives? This is a FAQ. On Thu, Dec 4, 2008 at 12:36 PM, David Blanton <[EMAIL PROTECTED]> wrote: On Tiger I get one Help Menu On Leopard I get two Help Menus Has anyone seen this before? Is there some brain dead thing I am missing? Am I brain dead? My boss

Re: Help Menu

2008-12-04 Thread David Blanton
The cited reference seems to describe my problem. I am putting up a modal registration in windowDidLoad so I am moving that code to applicationDidFinishLaunching. I'll report my results but I am sure it will resolve the issue. Thanks so much for your patience! On Dec 4, 2008, at 11:25 AM

Re: Help Menu

2008-12-04 Thread jmunson
Hmmm... Maybe this will help? http://vgable.com/blog/2008/10/29/two-help-menus/ Peace, Love, and Light, /s/ Jon C. Munson II Quoting David Blanton <[EMAIL PROTECTED]>: I searched the list archives to no avail. I do not believe that I am the only one to see this problem ... the code is vanil

Re: Help Menu

2008-12-04 Thread Jean-Daniel Dupas
Use cocoa builder or Google to search: http://www.google.com/search?q=duplicate+help+menu+site%3Alists.apple.com http://www.cocoabuilder.com/archive/message/cocoa/2007/7/30/186910 Le 4 déc. 08 à 19:05, David Blanton a écrit : I searched the list archives to no avail. I do not

Re: Help Menu

2008-12-04 Thread David Blanton
wrote: Have you tried searching this list's archives? This is a FAQ. On Thu, Dec 4, 2008 at 12:36 PM, David Blanton <[EMAIL PROTECTED]> wrote: On Tiger I get one Help Menu On Leopard I get two Help Menus Has anyone seen this before? Is there some brain dead thing I am missing? Am I

Re: Help Menu

2008-12-04 Thread David Blanton
No. I searched Apple Developer. Duh. Will do so now. On Dec 4, 2008, at 10:38 AM, I. Savant wrote: Have you tried searching this list's archives? This is a FAQ. On Thu, Dec 4, 2008 at 12:36 PM, David Blanton <[EMAIL PROTECTED]> wrote: On Tiger I get one Help Menu On Leopar

Re: Help Menu

2008-12-04 Thread David Blanton
Out of the box menu with two items: app help app register app help has key equivalent ? On Leopard I get the Help Menu with Spotlight followed by the two aforementioned entries but app help does not have the key equivalent. Next to this menu I get another Help Menu with only the app help

Re: Help Menu

2008-12-04 Thread jmunson
oting David Blanton <[EMAIL PROTECTED]>: On Tiger I get one Help Menu On Leopard I get two Help Menus Has anyone seen this before? Is there some brain dead thing I am missing? Am I brain dead? My boss thinks I am because of this problem. arrghh! On Dec 4, 2008, at 12:39 AM, David Blanton

Re: Help Menu

2008-12-04 Thread I. Savant
Have you tried searching this list's archives? This is a FAQ. On Thu, Dec 4, 2008 at 12:36 PM, David Blanton <[EMAIL PROTECTED]> wrote: > On Tiger I get one Help Menu > On Leopard I get two Help Menus > > Has anyone seen this before? > Is there some brain dead thing

Re: Help Menu

2008-12-04 Thread David Blanton
On Tiger I get one Help Menu On Leopard I get two Help Menus Has anyone seen this before? Is there some brain dead thing I am missing? Am I brain dead? My boss thinks I am because of this problem. arrghh! On Dec 4, 2008, at 12:39 AM, David Blanton wrote: I have been required to develop and

Help Menu

2008-12-03 Thread David Blanton
I have been required to develop and build with Xcode 2.41 on 10.4.11. In testing on 10.5.5 I get two help menus. Is there something I need to do for Help on 10.5.x ? David Blanton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Remove help menu shortcut

2008-10-13 Thread Kyle Sluder
On Mon, Oct 13, 2008 at 11:21 AM, Benjamin Dobson <[EMAIL PROTECTED]> wrote: > Thanks for the response. However, I have already deleted the help menu. > Until this works, I have the shortcut as ⌘9 for testing purposes. This works > fine. Unfortunately, as soon as I change it to ⌘

Re: Remove help menu shortcut

2008-10-13 Thread Ron Fleckner
file) which you want to handle the help action and choose which of your pre-existing methods you want to use. Ron On 14/10/2008, at 2:21 AM, Benjamin Dobson wrote: Thanks for the response. However, I have already deleted the help menu. Until this works, I have the shortcut as ⌘9 for testing

Re: Remove help menu shortcut

2008-10-13 Thread Benjamin Dobson
Thanks for the response. However, I have already deleted the help menu. Until this works, I have the shortcut as ⌘9 for testing purposes. This works fine. Unfortunately, as soon as I change it to ⌘?, pressing the keys makes nothing happen. Literally, nothing - it doesn't even beep,

Re: Remove help menu shortcut

2008-10-13 Thread Ron Fleckner
On 13/10/2008, at 12:38 AM, Benjamin Dobson wrote: Hi, In Leopard, pressing ⌘? automatically activates the Help menu. Unfortunately, this means the ⌘? shortcut cannot be assigned to anything else. In my application, the ⌘? shortcut needs to perform a different action to the pre-built

Remove help menu shortcut

2008-10-12 Thread Benjamin Dobson
Hi, In Leopard, pressing ⌘? automatically activates the Help menu. Unfortunately, this means the ⌘? shortcut cannot be assigned to anything else. In my application, the ⌘? shortcut needs to perform a different action to the pre-built one. (It is a full-screen application, help is written

Re: Application's Help menu ignores first click

2008-08-07 Thread Mattias Arrelid
On Thu, Aug 7, 2008 at 11:53 AM, Mattias Arrelid <[EMAIL PROTECTED]> wrote: > Hi list, > > I've got a strange problem that I cannot figure out how to solve. When > starting up my application, and choosing Help from the application's > menu, trying to perform _any_ of the items listed doesn't work.

Application's Help menu ignores first click

2008-08-07 Thread Mattias Arrelid
Hi list, I've got a strange problem that I cannot figure out how to solve. When starting up my application, and choosing Help from the application's menu, trying to perform _any_ of the items listed doesn't work. Re-opening the Help a second time, clicking on any item works as expected. Strange!?!