NSGraphicsContext currentContext() returns nil on OSX 10.11

2015-10-12 Thread Lakshmi P Shanmugam
I'm running our application on OSX 10.11. NSGraphicsContext currentContext() returns nil in one of the drawing methods. The same code works fine on OSX 10.9.5 and 10.10.3. According to the documentation, currentContext returns an instance of a concrete subclass of NSGraphicsContext. It doesn't ment

Re: NSGraphicsContext currentContext() returns nil on OSX 10.11

2015-10-12 Thread dangerwillrobinsondanger
> On Oct 12, 2015, at 8:45 PM, Lakshmi P Shanmugam > wrote: > > I'm running our application on OSX 10.11. NSGraphicsContext > currentContext() returns nil in one of the drawing methods. The same code > works fine on OSX 10.9.5 and 10.10.3. > According to the documentation, currentContext ret

Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar

2015-10-12 Thread Richard Charles
> On Oct 11, 2015, at 3:07 PM, Jacek Oleksy wrote: > > I am not subclassing NSToolbar, I am using NSView (and putting > NSButton as a subview). Why would you not use NSToolbar? I would bet that Apple “native” toolbars use NSToolbar or a subclass there of. > Sadly, that is not true. From the d

Re: NSGraphicsContext currentContext() returns nil on OSX 10.11

2015-10-12 Thread Ken Thomases
On Oct 12, 2015, at 6:45 AM, Lakshmi P Shanmugam wrote: > I'm running our application on OSX 10.11. NSGraphicsContext > currentContext() returns nil in one of the drawing methods. What drawing method and who called it, you or the framework? For example, I recently worked with somebody who was

Re: More Swift issues, NSURLComponents

2015-10-12 Thread Rick Mann
> On Oct 5, 2015, at 19:19 , Jens Alfke wrote: > > >> On Oct 5, 2015, at 6:59 PM, Rick Mann wrote: >> >> Huh. I continue to be bothered by the ambiguity/variability of "let"*. Is >> the reference immutable or the thing it points to? > > A variable (var or let) doesn’t “point to” a struct. I

Re: More Swift issues, NSURLComponents

2015-10-12 Thread Jens Alfke
> On Oct 12, 2015, at 2:00 PM, Rick Mann wrote: > > In all this discussion, I forgot to bring up the containers: are they > special? A "let" container can't be reassigned, nor can its contents be > changed. How is this implemented? No, they’re not special, but they’re structs (not classes). T

Re: More Swift issues, NSURLComponents

2015-10-12 Thread Rick Mann
> On Oct 12, 2015, at 14:08 , Jens Alfke wrote: > > >> On Oct 12, 2015, at 2:00 PM, Rick Mann wrote: >> >> In all this discussion, I forgot to bring up the containers: are they >> special? A "let" container can't be reassigned, nor can its contents be >> changed. How is this implemented? >

Re: How to make UISplitViewController behave ?

2015-10-12 Thread David Duncan
> On Oct 11, 2015, at 11:21 PM, Gerriet M. Denkmann > wrote: > > iPad / iPhone Master-Detail app. iOS 9.0, Xcode 7.0 > > Rotating the iPad to Portrait my AppDelegate will receive a > UIDeviceOrientationDidChangeNotification: > > 12:23:01.182 -[AppDelegate iPadHasTurned:] > and does: >

Re: How to make UISplitViewController behave ?

2015-10-12 Thread Gerriet M. Denkmann
> On 13 Oct 2015, at 04:49, David Duncan wrote: > > >> On Oct 11, 2015, at 11:21 PM, Gerriet M. Denkmann >> wrote: >> >> iPad / iPhone Master-Detail app. iOS 9.0, Xcode 7.0 >> >> Rotating the iPad to Portrait my AppDelegate will receive a >> UIDeviceOrientationDidChangeNotification: >> >>

Re: Data not retained in document based core data app with cocoa bindings

2015-10-12 Thread Jerry Krinock
> On 2015 Oct 11, at 09:30, Richard Charles wrote: > >> On Oct 11, 2015, at 2:41 AM, Devarshi Kulshreshtha >> wrote: >> >> Looking for more clues :-| Devarshi, I tried the kludge which Richard found on Stack Overflow (self.view.window.windowController.document.managedObjectContext), and it