Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
My Mac OS application has an NSDatePicker object in a popover. When the popover opens, the date picker works perfectly. However, when I detach the popover to its own window, the date picker no longer highlights the selected date picker element. The date picker still works perfectly in all othe

NSFileManager createDirectory… confusing docs.

2013-02-23 Thread John Joyce
A bit of trouble with the NSFileManager docs for the methods: – createDirectoryAtURL:withIntermediateDirectories:attributes:error: – createDirectoryAtPath:withIntermediateDirectories:attributes:error: Both say: Return Value YES if the directory was created or already exists or NO if an error occu

Re: NSFileManager createDirectory… confusing docs.

2013-02-23 Thread Quincey Morris
On Feb 23, 2013, at 07:57 , John Joyce wrote: > The docs do not seem clear on this. (not to me anyway). Yes, they're not clear on this. > If the directory you are creating is also considered an "intermediate parent" > directory, that is just confusing. Presumably, it seemed like a good idea

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 1:35 PM, Keary Suska wrote: > Your description suggests that you aren't using separate UI elements for the > window and the popover as required by the docs...? When I said "I am instantiating separate controllers and views for the anchored popover and the detached popove

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 1:35 PM, Keary Suska wrote: > Your description suggests that you aren't using separate UI elements for the > window and the popover as required by the docs...? I just discovered that Apple's Popover sample code exhibits exactly the same problem when I add a date picker t

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 2:46 PM, "William J. Cheeseman" wrote: > I just discovered that Apple's Popover sample code exhibits exactly the same > problem when I add a date picker to its popover view! The date picker looks > and works as it should when the popover is anchored to its parent window, b

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 3:32 PM, "William J. Cheeseman" wrote: > Using Apple's Popover example with a date picker added to its popover view, I > made MyWindowController the delegate of the popover view Correction: I made MyWindowController the delegate of the detachedWindow object in MyMenu.xib

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 4:04 PM, William J. Cheeseman wrote: > When a popover is still anchored to its parent window, the popover view's > window is the parent window -- which makes sense, when you think about it, > because a popover is just another view in the main window. When the popover > is

Re: iOS books, etc for experienced OSX programmers

2013-02-23 Thread Uli Kusterer
Yeah, that'd be my bet as well. It's a fairly new technology. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de On 22.02.2013, at 15:37, Koen van der Drift wrote: > One thing I'm not sure about yet is the use of 'storyboards'. Apple uses it > in their

Re: iOS books, etc for experienced OSX programmers

2013-02-23 Thread Fritz Anderson
Both Xcode 4 Unleashed and its 4.5 supplement give extended attention to storyboards. — F -- Fritz Anderson Xcode 4 Unleashed: 4.5 supplement for free! http://www.informit.com/store/xcode-4-unleashed-9780672333279 On 23 Feb 2013, at 4:08 PM, Uli Kusterer wrote: > Yeah, that'd be my b

Re: NSFileManager createDirectory… confusing docs.

2013-02-23 Thread John Joyce
On Feb 24, 2013, at 3:45 AM, Quincey Morris wrote: > On Feb 23, 2013, at 07:57 , John Joyce > wrote: > >> The docs do not seem clear on this. (not to me anyway). > > Yes, they're not clear on this. > >> If the directory you are creating is also considered an "intermediate >> parent" dire

NSSavePanel problem

2013-02-23 Thread Peter Hudson
Hi All I use an NSSavePanel to save data to file in HTML format. This panel is run from a button in one of the panels in the app. The whole mechanism has been working absolutely fine for a long time - up until 10.8. I know find that if I click in the "select directory popup" that the app

Re: NSSavePanel problem

2013-02-23 Thread Jon Gary
Post a crash log? Did you run with zombies on? -- Jon On Feb 23, 2013, at 6:14 PM, Peter Hudson wrote: > Hi All > > I use an NSSavePanel to save data to file in HTML format. > This panel is run from a button in one of the panels in the app. > > The whole mechanism has been working absolut

Re: NSSavePanel problem

2013-02-23 Thread Peter Hudson
Hi Jon Here is a truncated crash log - whole log exceeds dev-list max size; Process: WattWenn [215] Path:/Users/USER/Desktop/*/WattWenn.app/Contents/MacOS/WattWenn Identifier: WattWenn Version: V 3.1 Beta [ 0344-20120504 UI Change ] (???) Code Type: X86 (N

Re: NSSavePanel problem

2013-02-23 Thread Graham Cox
On 24/02/2013, at 10:49 AM, Peter Hudson wrote: > Here is a truncated crash log - whole log exceeds dev-list max size; I have seen something similar when running the save panel as a sheet attached to a floating window with sandboxing does that sound like your situation? I fixed it tempor

Re: NSSavePanel problem

2013-02-23 Thread Peter Hudson
I'm not using sandboxing - the app only runs on OSX. I wondered if it's possible to run the save panel without the row of widgets which the directory picker popup is in ? I couldn't find an API to remove it though. How do you run it as a panel standalone - as opposed to as a sheet ? Peter On

Re: NSFileManager createDirectory… confusing docs.

2013-02-23 Thread Ken Thomases
On Feb 23, 2013, at 9:57 AM, John Joyce wrote: > A bit of trouble with the NSFileManager docs for the methods: > – createDirectoryAtURL:withIntermediateDirectories:attributes:error: > – createDirectoryAtPath:withIntermediateDirectories:attributes:error: > > Both say: > > Return Value > YES if th

Re: NSSavePanel problem

2013-02-23 Thread Mills, Steve
On Feb 23, 2013, at 18:43, "Peter Hudson" wrote: > I'm not using sandboxing - the app only runs on OSX. > > I wondered if it's possible to run the save panel without the row of widgets > which the directory picker popup is in ? >From the look of that crash log, it looks like something could be

Re: NSSavePanel problem

2013-02-23 Thread Andy Lee
On Feb 23, 2013, at 7:40 PM, Peter Hudson wrote: > I wondered if it's possible to run the save panel without the row of widgets > which the directory picker popup is in ? > I couldn't find an API to remove it though. It might be possible, but I doubt it -- those controls seem an integral part o

Re: NSSavePanel problem

2013-02-23 Thread Quincey Morris
On Feb 23, 2013, at 18:12 , Andy Lee wrote: > Also, to repeat part of Graham's question: is the window you're attaching the > sheet to a floating window or a regular window? Maybe the sandboxing is > irrelevant. > >> How do you run it as a panel standalone - as opposed to as a sheet ? > > I d

Re: Problem with NSDatePicker in popover

2013-02-23 Thread Graham Cox
On 24/02/2013, at 8:04 AM, William J. Cheeseman wrote: > When a popover is still anchored to its parent window, the popover view's > window is the parent window -- which makes sense, when you think about it, > because a popover is just another view in the main window. Are you sure about that?

Re: NSSavePanel problem

2013-02-23 Thread Andy Lee
On Feb 23, 2013, at 9:57 PM, Quincey Morris wrote: > On Feb 23, 2013, at 18:12 , Andy Lee wrote: > >> Also, to repeat part of Graham's question: is the window you're attaching >> the sheet to a floating window or a regular window? Maybe the sandboxing is >> irrelevant. >> >>> How do you run

Re: NSSavePanel problem

2013-02-23 Thread Jon Gary
Just because a crash happens in an apple framework doesn't mean it's note our bug. If you can't take the time to run the code with zombies on, it's a waste of everyone else's time guessing what's going on. -- Jon On Feb 23, 2013, at 9:57 PM, Quincey Morris wrote: > On Feb 23, 2013, at 18:1

Re: Custom control with 4 vertical sliders

2013-02-23 Thread N!K
I've been following this thread because I have a similar application in mind, displaying 6 sets (groupings, not NSSets) consisting of a label with slider and textview, both bound to an ivar. It seems so simple: create a custom view with one set, duplicate it to make 6 such custom views, and p

Re: NSSavePanel problem

2013-02-23 Thread Quincey Morris
On Feb 23, 2013, at 20:46 , Jon Gary wrote: > Just because a crash happens in an apple framework doesn't mean it's note our > bug. If you can't take the time to run the code with zombies on, it's a > waste of everyone else's time guessing what's going on. Sure, I wasn't intending to suggest

Re: Custom control with 4 vertical sliders

2013-02-23 Thread Graham Cox
On 24/02/2013, at 4:59 PM, N!K wrote: > It seems so simple: create a custom view with one set, duplicate it to make 6 > such custom views, and place them all into another custom view. Well, you have to consider that NSView does not support NSCopying, though there are fairly simple ways around