Gap above NSMenuItem custom view

2010-12-26 Thread Joshua Garnham
I am using the setView: method on an NSMenuItem to set a custom view. In this custom view there is an image which takes the whole of the view. The NSMenuItem with this custom view is the first in the menu but the problem is it doesn't sit flush with the top of the menu, there is a big gap as yo

Re: Gap above NSMenuItem custom view

2010-12-26 Thread Kyle Sluder
On Dec 26, 2010, at 11:07 AM, Joshua Garnham wrote: > Why is this happening and how can I stop it? You can't. Search the archives and you'll see other people have had this same problem. There needs to be a bot that autoreplies to NSView-in-NSMenu questions: "If you're trying to mimic Spotligh

Re: Gap above NSMenuItem custom view

2010-12-26 Thread Josh
I am sure there is a way, I have been looking in the archives and found mention of changing the metrics for the top of the menu with Carbon. How would they of done this? On 26 Dec 2010, at 17:11, Kyle Sluder wrote: > On Dec 26, 2010, at 11:07 AM, Joshua Garnham > wrote: > >> Why is this hap

Re: Gap above NSMenuItem custom view

2010-12-26 Thread Kyle Sluder
On Dec 26, 2010, at 12:19 PM, Josh wrote: > I am sure there is a way, I have been looking in the archives and found > mention of changing the metrics for the top of the menu with Carbon. How > would they of done this? You have no access to the Menu Manager on the modern runtime. Spotlight doe

Search with a UIWebView (iOS 4.2)

2010-12-26 Thread Philip Vallone
Hi List, In iOS 4.2, you can search within a webpage in Safari. Is there a search bar object that can do this in a UIWebView? Thanks, Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Gap above NSMenuItem custom view

2010-12-26 Thread Joshua Garnham
I see your point but I just found this post on Stack Overflow detailing how someone else has done it. http://stackoverflow.com/questions/4064386/reverse-engineering-an-nsmenu-for-a-status-bar-item However I am having dificulty compiling the code as I get EXC_BAD_ACCESS on the line where the ev

Re: Gap above NSMenuItem custom view

2010-12-26 Thread Kyle Sluder
On Sun, Dec 26, 2010 at 4:16 PM, Joshua Garnham wrote: > > I see your point but I just found this post on Stack Overflow detailing how > someone else has done it. > > http://stackoverflow.com/questions/4064386/reverse-engineering-an-nsmenu-for-a-status-bar-item > > However I am having dificulty c

Re: Strange error solved by turning off "Non-contiguous Layout"

2010-12-26 Thread Brad Stone
Ken - I never knew how to take a sample of the processes. It's given me some visibility into the spinning beach ball. I still get the deadlock in the commitEditing which is in saveDocumentWithDelegate only on some documents when I edit text that requires me to scroll an NSTextView. Does anyth

Re: Strange error solved by turning off "Non-contiguous Layout"

2010-12-26 Thread Nick Zitzmann
On Dec 26, 2010, at 5:00 PM, Brad Stone wrote: > Ken - I never knew how to take a sample of the processes. It's given me some > visibility into the spinning beach ball. I still get the deadlock in the > commitEditing which is in saveDocumentWithDelegate only on some documents > when I edit t