Re: Staying on integrated GPU while using NSOpenGLView

2013-06-11 Thread Miguel Pontes
On Jun 11, 2013, at 21:39 , Nick Zitzmann wrote: > On Jun 10, 2013, at 10:03 PM, Miguel Pontes wrote: > >> Hello, >> I'm having issues getting an app to not trigger switching to the dedicated >> GPU when using NSOpenGLView. > […] >> Is there anything I'm doing wrong? I've read on this mailing

Re: Character encoding of C-string runtime functions?

2013-06-11 Thread Rick Mann
On Jun 11, 2013, at 14:32 , Greg Parker wrote: > Formally unspecified. It's possible to create a selector or class at runtime > with arbitrary zero-terminated bytes and the runtime won't care. > > In practice you should use UTF-8. That's what the compiler does. Thanks. That's what I've always

Re: Character encoding of C-string runtime functions?

2013-06-11 Thread Greg Parker
On Jun 11, 2013, at 2:21 PM, Rick Mann wrote: > A function like sel_getName() returns a const char* NULL-terminated C string. > What is the character encoding of this string? Formally unspecified. It's possible to create a selector or class at runtime with arbitrary zero-terminated bytes and th

Character encoding of C-string runtime functions?

2013-06-11 Thread Rick Mann
A function like sel_getName() returns a const char* NULL-terminated C string. What is the character encoding of this string? -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Staying on integrated GPU while using NSOpenGLView

2013-06-11 Thread Nick Zitzmann
On Jun 10, 2013, at 10:03 PM, Miguel Pontes wrote: > Hello, > I'm having issues getting an app to not trigger switching to the dedicated > GPU when using NSOpenGLView. […] > Is there anything I'm doing wrong? I've read on this mailing list before > (http://lists.apple.com/archives/cocoa-dev/20

Re: NSURLRequest returning bizarre page

2013-06-11 Thread Greg Parker
On Jun 10, 2013, at 5:32 PM, Trygve Inda wrote: > http://www.celestrak.com/NORAD/elements/stations.txt The JavaScript redirect you showed earlier appears to be that server's broken attempt to display a "page not found" error. Note the Content-Location header with "404" in it. Perhaps the file

Re: NSManagedObjectContextObjectsDidChangeNotification confusion

2013-06-11 Thread Jerry Krinock
I haven't comprehended your whole situation, but maybe there is some event you could hook in to and trigger -processPendingChanges in context A. That usually shakes things up. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

NSManagedObjectContextObjectsDidChangeNotification confusion

2013-06-11 Thread Roland King
My first time really trying to do multi-threaded Core Data .. I have two contexts, A and B. Things are changing in A, I want to track them in B. I think I understand how the ..DidSaveNotification works with mergeChangesFromContextDidSaveNotification:, it can refresh the objects in B's context

Re: CALayer -displayLayer:inContext: never called during frame/bounds animation

2013-06-11 Thread Daniele Margutti
On 10 Jun 2013, at 16:50, David Duncan wrote: > The behavior you see is correct. Remember that the model layer (the layer you > have) only sees discrete values for an animation – typically the beginning > and end values. The intermediate values are generated by the Core Animation > for rende

Staying on integrated GPU while using NSOpenGLView

2013-06-11 Thread Miguel Pontes
Hello, I'm having issues getting an app to not trigger switching to the dedicated GPU when using NSOpenGLView. I've added NSSupportsAutomaticGraphicsSwitching: YES to the Info.plist, but the dedicated GPU keeps getting triggered no matter what, just as soon as I call [self openGLContext] from i

Re: NSURLRequest returning bizarre page

2013-06-11 Thread Manoah F. Adams
Hello, [this message updated; previous message failed to get posted to the list] I noticed that the garbling is always "^M\n" -- indicating to me there is a newline/linebreak encoding issue. (especially since the server is a Microsoft monster). 2 ideas in order of likelihood: === (1) ==