NSSearchField appearance in toolbar

2015-01-15 Thread Rick C.
Hi, My app has a bottom bar with several buttons and a search field. My problem is I cannot get the search field to have the same appearance as when it’s in an NSToolbar like Finder or Mail.app. But the buttons in my bottom bar do have the appearance as if they were in a toolbar. How can I g

Re: drawRect runs twice, bounds are changed in between

2015-01-15 Thread Steve Christensen
Would the Managing Live Resize methods of NSView (https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/#//apple_ref/doc/uid/2014-SW41) be helpful? The docs for -viewWillStartLiveResize suggest that that would be a good place to prepare fo

Re: drawRect runs twice, bounds are changed in between

2015-01-15 Thread Graham Cox
> On 15 Jan 2015, at 3:39 pm, N!K wrote: > > I’m trying to learn more about drawing. One stumbling block was getting an > NSBezierPath to change size proportional to the window size when the corner > is dragged. Per Graham Cox’s suggestion, the view size change can be detected > in subsequent

Search for emails in Mail’s previous recipients list from MacOSX app

2015-01-15 Thread Steffen Andersen
Hi I am currently working on a MacOSX app, where the user will be able to send mails generated  based on different user input. To help the user, when writing an email address, it would be great, if it was possible to search in the previous recipients list/db Mail uses. As not all emails will b

Re: Search for emails in Mail’s previous recipients list from MacOSX app

2015-01-15 Thread Markus Spoettl
On 15/01/15 22:04, Steffen Andersen wrote: I am currently working on a MacOSX app, where the user will be able to send mails generated based on different user input. To help the user, when writing an email address, it would be great, if it was possible to search in the previous recipients list/d

Directory navigated to by menu File > Open

2015-01-15 Thread Jerry Krinock
I have noticed that the directory which is navigated to in the File > Open dialog of my NSDocument-based application does not give what I expect, and am trying to control it. To make sure it’s not due to something I did, I am experimenting with Apple’s TextEdit sample project instead. Although

Re: Directory navigated to by menu File > Open

2015-01-15 Thread Ken Thomases
On Jan 15, 2015, at 6:16 PM, Jerry Krinock wrote: > I have noticed that the directory which is navigated to in the File > Open > dialog of my NSDocument-based application does not give what I expect, and am > trying to control it. > So, great, I thought, just override -currentDirectory in the

Re: Directory navigated to by menu File > Open

2015-01-15 Thread Lee Ann Rucker
On Jan 15, 2015, at 4:34 PM, Ken Thomases wrote: > On Jan 15, 2015, at 6:16 PM, Jerry Krinock wrote: > >> I have noticed that the directory which is navigated to in the File > Open >> dialog of my NSDocument-based application does not give what I expect, and >> am trying to control it. > >>

Re: Directory navigated to by menu File > Open

2015-01-15 Thread Quincey Morris
On Jan 15, 2015, at 16:16 , Jerry Krinock wrote: > > Presumably I could get the control I want by overriding and re-implementing > -openDocument: to actually use -currentDirectory the way the documentation > says it should. I’m not entirely sure you should do that, at least not casually. Not

Re: Directory navigated to by menu File > Open

2015-01-15 Thread dangerwillrobinsondanger
> On 2015/01/16, at 11:24, Quincey Morris > wrote: > > Only if it actively interferes with the way your users actually use your app > (and they’re complaining about it) could I see an unarguable reason for going > your own way on this. I can see a lot of reasons a particular NSDocument subc