Quartz Display Services Retina Display Modes

2014-05-20 Thread Matthias Dörfelt
Hey All, AFAIK there is no way to find retina display modes with Quartz Display Services right now. Why is that? Is there any workaround or different API? Right now, if I change the Display Mode of my retina display programmatically, I have to cache the original retina display mode in order to

Re: Quartz Display Services Retina Display Modes

2014-05-20 Thread Matthias Dörfelt
I just realized that the cocoa list might not be the best place to ask this question, as it somewhat includes all available osx APIs. I’d be glad about any hints, though. Thanks. Am 19.05.2014 um 23:59 schrieb Matthias Dörfelt li...@mokafolio.de: Hey All, AFAIK there is no way to find

Re: Quartz Display Services Retina Display Modes

2014-05-20 Thread Ken Thomases
On May 20, 2014, at 1:59 AM, Matthias Dörfelt wrote: AFAIK there is no way to find retina display modes with Quartz Display Services right now. Why is that? Is there any workaround or different API? Right now, if I change the Display Mode of my retina display programmatically, I have to

Re: NSDatePicker : Displaying and binding to nil.

2014-05-20 Thread Rob Petrovec
I haven’t looked at your code, but why not use a nil placeholder value when binding? Pass an options dictionary with a key / value pair of NSNullPlaceholderBindingOption / the value you want to use when nil to the -bind:… method, or specify the value for the nil placeholder in the nib.

Re: NSDatePicker : Displaying and binding to nil.

2014-05-20 Thread Jonathan Mitchell
On 20 May 2014, at 11:35, Rob Petrovec petr...@mac.com wrote: I haven’t looked at your code, but why not use a nil placeholder value when binding? Pass an options dictionary with a key / value pair of NSNullPlaceholderBindingOption / the value you want to use when nil to the -bind:…

Re: get set firewall status

2014-05-20 Thread Edward Marczak
It's still present on Mavericks, but the man page for ipfw reads: This utility is DEPRECATED. Please use pfctl(8) instead. Also, aside from the traditional port-based firewall, the firewall you enable/disable in the security pref pane is an application-level firewall, separate from ipfw or pf.

Re: get set firewall status

2014-05-20 Thread 2551
On 20 May 2014, at 19:48, Edward Marczak marc...@gmail.com wrote: This is the firewall represented in system_profiler output, so, check out the man page for (or use otool on) afctl. Thanks for the feedback everyone. I've done an exhaustive search, but there's nothing called 'afctl' on my

kCGStatusWindowLevel

2014-05-20 Thread edward taffel
does anyone know where to find the definition of kCGStatusWindowLevel (NSStatusWindowLevel)? or alternatively, can anyone define it? thanks in advance, edward taffel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Core Data migration and non-optional transient relationships

2014-05-20 Thread Sean McBride
Hi all, Doing a Core Data migration (not the lightweight kind) I hit an error at the end: foo is a required value. the 'foo' relationship it complains about is transient and so not present in the store. Normally, I recreate the relationship in awakeFromFetch, but it doesn't seem to call

Re: kCGStatusWindowLevel

2014-05-20 Thread Keary Suska
On May 20, 2014, at 8:17 AM, edward taffel wrote: does anyone know where to find the definition of kCGStatusWindowLevel (NSStatusWindowLevel)? or alternatively, can anyone define it? NSStatusWindowLevel is declared in NSWindow.h, kCGStatusWindowLevel is declared in CGWindowLevel.h. Is it

Re: NSAlert - Default Cancel also respond to Escape?

2014-05-20 Thread Andy Lee
On May 19, 2014, at 4:30 PM, Seth Willits sli...@araelium.com wrote: Any ideas on how to get a Cancel button which is both the default button and responds to escape? Both require setting the button's key equivalent and there can only be one. This seems to work: NSAlert *alert =

Re: kCGStatusWindowLevel

2014-05-20 Thread edward taffel
On May 20, 2014, at 10:41 AM, Keary Suska cocoa-...@esoteritech.com wrote: On May 20, 2014, at 8:17 AM, edward taffel wrote: does anyone know where to find the definition of kCGStatusWindowLevel (NSStatusWindowLevel)? or alternatively, can anyone define it? NSStatusWindowLevel is

Re: kCGStatusWindowLevel

2014-05-20 Thread edward taffel
apologies keary, on reread, my question is badly cast: i should have read it the same as you. the issue is: i have an overlay (created programmatically w/ NSBorderlessWindowMask) at the top of my document view; after switching to full screen setFrame disregards my requested rect (without log

Re: Core Data migration and non-optional transient relationships

2014-05-20 Thread Mike Abdullah
On 20 May 2014, at 15:21, Sean McBride s...@rogue-research.com wrote: Hi all, Doing a Core Data migration (not the lightweight kind) I hit an error at the end: foo is a required value. the 'foo' relationship it complains about is transient and so not present in the store.

Re: Quartz Display Services Retina Display Modes

2014-05-20 Thread Matthias Dörfelt
Thanks, that does exactly what I want. The naming of kCGDisplayShowDuplicateLowResolutionModes seems is very confusing and ambiguous to me, though. Thanks for the help! Matthias Am 20.05.2014 um 00:32 schrieb Ken Thomases k...@codeweavers.com: On May 20, 2014, at 1:59 AM, Matthias Dörfelt

Re: Core Data migration and non-optional transient relationships

2014-05-20 Thread Jerry Krinock
On 2014 May 20, at 07:21, Sean McBride s...@rogue-research.com wrote: As a test I made the relationship optional, then it no longer complains. Consider leaving it that way, Sean. The only effect I’ve ever had from setting Core Data properties to be non-optional is the creation of mysterious

Re: Core Data migration and non-optional transient relationships

2014-05-20 Thread Dave Fernandes
During migration you have a bare NSManagedObject and not your custom subclass. So any custom code has to be in a migration policy. Sent from my iPhone On May 20, 2014, at 12:07 PM, Mike Abdullah mabdul...@karelia.com wrote: On 20 May 2014, at 15:21, Sean McBride s...@rogue-research.com

Re: Question on NSTableViewDataSource Protocol

2014-05-20 Thread Jerry Krinock
On 2014 May 18, at 14:38, Varun Chandramohan varun.chandramo...@wontok.com wrote: so lets say I avoid [_tableContents removeAllObjects] Indeed. I think that the vote in this thread is now about 6 to 0 *against* using -removeAllObjects :) Could I do something like this before removing the

Re: kCGStatusWindowLevel

2014-05-20 Thread Lee Ann Rucker
This sounds like something we hit in 10.9 fullscreen on secondary monitors; we had to do this to get it to setFrame where we told it: in NSWindow subclass: - (NSRect)constrainFrameRect: (NSRect)frameRect toScreen: (NSScreen *)screen { return frameRect; } On May 20, 2014,

Re: kCGStatusWindowLevel

2014-05-20 Thread Keary Suska
On May 20, 2014, at 9:55 AM, edward taffel wrote: apologies keary, on reread, my question is badly cast: i should have read it the same as you. the issue is: i have an overlay (created programmatically w/ NSBorderlessWindowMask) at the top of my document view; after switching to full

Re: get set firewall status

2014-05-20 Thread Edward Marczak
D'oh...brain slip: /usr/libexec/ApplicationFirewall/socketfilterfw is what you want. No man page, but there's a --help flag. On Tue, May 20, 2014 at 10:05 AM, 2551 2551p...@gmail.com wrote: On 20 May 2014, at 19:48, Edward Marczak marc...@gmail.com wrote: This is the firewall represented in

Re: kCGStatusWindowLevel

2014-05-20 Thread edward taffel
On May 20, 2014, at 2:51 PM, Lee Ann Rucker lruc...@vmware.com wrote: This sounds like something we hit in 10.9 fullscreen on secondary monitors; we had to do this to get it to setFrame where we told it: in NSWindow subclass: - (NSRect)constrainFrameRect: (NSRect)frameRect

Re: kCGStatusWindowLevel

2014-05-20 Thread edward taffel
On May 20, 2014, at 5:18 PM, Keary Suska cocoa-...@esoteritech.com wrote: On May 20, 2014, at 9:55 AM, edward taffel wrote: apologies keary, on reread, my question is badly cast: i should have read it the same as you. the issue is: i have an overlay (created programmatically w/

Re: kCGStatusWindowLevel

2014-05-20 Thread Lee Ann Rucker
On May 20, 2014, at 4:45 PM, edward taffel wrote: On May 20, 2014, at 5:18 PM, Keary Suska cocoa-...@esoteritech.com wrote: On May 20, 2014, at 9:55 AM, edward taffel wrote: apologies keary, on reread, my question is badly cast: i should have read it the same as you. the issue is:

Re: kCGStatusWindowLevel

2014-05-20 Thread edward taffel
On May 20, 2014, at 8:06 PM, Lee Ann Rucker lruc...@vmware.com wrote: On May 20, 2014, at 4:45 PM, edward taffel wrote: On May 20, 2014, at 5:18 PM, Keary Suska cocoa-...@esoteritech.com wrote: On May 20, 2014, at 9:55 AM, edward taffel wrote: apologies keary, on reread, my

how to mumap memory from CoreGraphics?

2014-05-20 Thread vipgs99
I have an app that used a lot CoreGraphics and by using UIGraphicsGetCurrentContext() and CGContextDrawImage and etc CoreGraphics founctions, these functions call mmap() and these use a lot virtual memory. The problem is when I receive low memory warning, the memory used by mmap() in

Re: how to mumap memory from CoreGraphics?

2014-05-20 Thread David Duncan
On May 20, 2014, at 5:53 PM, vipgs99 vipg...@gmail.com wrote: I have an app that used a lot CoreGraphics and by using UIGraphicsGetCurrentContext() and CGContextDrawImage and etc CoreGraphics founctions, these functions call mmap() and these use a lot virtual memory. The problem is

Re: kCGStatusWindowLevel

2014-05-20 Thread Eric Schlegel
On May 20, 2014, at 5:06 PM, Lee Ann Rucker lruc...@vmware.com wrote: The setFrame issue might be an Apple bug which we reported but I don't have the rdar handy - it's applying the constraints as if there was a menu there, and there *is*, but it slides down as needed and should not prevent