Re: How to

2015-12-09 Thread Conrad Shultz
> On Dec 6, 2015, at 2:56 PM, Graham Cox wrote: > > >> On 7 Dec 2015, at 2:45 AM, Dave wrote: >> >> On the Mac what is the best control to use to do this? > > > Just override -mouseDown: in the view and call [NSApp > sendAction:toTarget:from:] > I’d recommend looking at NSClickGestureRec

Re: Mac OSX 10.11 and XCode

2015-12-09 Thread Richard Charles
> On Oct 1, 2015, at 5:58 PM, Richard Charles wrote: > > Yes this was a window server crash. Filed bug report 22943597 with crash log. On my multiple display development machine, window server crashing seems to have completely disappeared with the OS X 10.11.2 update. Stable as a rock so far.

Re: iPad Pro apps given more memory?

2015-12-09 Thread Rick Mann
Wow. Thanks! > On Dec 9, 2015, at 18:28 , Britt Durbrow > wrote: > > Well, FWIW I happen to have an iPad Pro sitting next to me, so I just whipped > up the following test and was able to allocate and write to almost 3GB of RAM > before it started crashing on me. > > #define allocationSize

Re: iPad Pro apps given more memory?

2015-12-09 Thread Britt Durbrow
Well, FWIW I happen to have an iPad Pro sitting next to me, so I just whipped up the following test and was able to allocate and write to almost 3GB of RAM before it started crashing on me. #define allocationSize (1024ULL*1024ULL*3050ULL) #define stride (4096) - (BOOL)applicat

Re: iPad Pro apps given more memory?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 17:37 , Jens Alfke wrote: > > >> On Dec 9, 2015, at 5:17 PM, Rick Mann wrote: >> >> - By "virtual memory," I'm sure you don't mean it's swapping to disk >> (flash). Or do you? If not, how is it virtual? > > All memory is virtual in any modern OS — the only thing that se

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 5:17 PM, Rick Mann wrote: > >> >> On Dec 9, 2015, at 16:42 , David Duncan wrote: >> >> >>> On Dec 9, 2015, at 4:35 PM, Rick Mann wrote: >>> On Dec 9, 2015, at 16:24 , David Duncan wrote: > On Dec 9, 2015, at 3:36 PM, Rick Mann wrote: >

Re: iPad Pro apps given more memory?

2015-12-09 Thread Jens Alfke
> On Dec 9, 2015, at 5:17 PM, Rick Mann wrote: > > - By "virtual memory," I'm sure you don't mean it's swapping to disk (flash). > Or do you? If not, how is it virtual? All memory is virtual in any modern OS — the only thing that sees ‘real’ memory addresses is the kernel’s VM subsystem. ‘Vir

Re: iPad Pro apps given more memory?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 16:42 , David Duncan wrote: > > >> On Dec 9, 2015, at 4:35 PM, Rick Mann wrote: >> >>> >>> On Dec 9, 2015, at 16:24 , David Duncan wrote: >>> >>> On Dec 9, 2015, at 3:36 PM, Rick Mann wrote: > On Dec 9, 2015, at 15:19 , Jens Alfke wrote: >

Re: iPad Pro apps given more memory?

2015-12-09 Thread Jens Alfke
> On Dec 9, 2015, at 16:24 , David Duncan > wrote: > > The virtual limit is 2GB on most devices right now, so you can use mmap() to > go beyond the dirty limit. Hm, I wasn’t aware that was limited. 2GB seems like a lot normally, but there are databases engines l

Re: LSSharedFIleList API deprecated

2015-12-09 Thread Dragan Milić
On sre 09.12.2015., at 19.12, Greg Weston wrote: >> I opened a radar a while back and got this answer: >> >> "Shared file lists are no longer supported. There is no exact replacement >> API.” >> “If you want to manage your recent documents list, you should use >> NSDocumentController." >> “If y

Re: Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 16:25 , David Duncan wrote: > > >> On Dec 9, 2015, at 3:55 PM, Rick Mann wrote: >> >>> >>> On Dec 9, 2015, at 15:50 , SevenBits >> > wrote: >>> >>> Is it a matter of building with an newer SDK? >> >> I don't think so; we're building with

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 4:35 PM, Rick Mann wrote: > >> >> On Dec 9, 2015, at 16:24 , David Duncan wrote: >> >> >>> On Dec 9, 2015, at 3:36 PM, Rick Mann wrote: >>> >>> On Dec 9, 2015, at 15:19 , Jens Alfke wrote: > On Dec 9, 2015, at 2:56 PM, Rick Mann wrote: > >>

Re: iPad Pro apps given more memory?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 16:24 , David Duncan wrote: > > >> On Dec 9, 2015, at 3:36 PM, Rick Mann wrote: >> >> >>> On Dec 9, 2015, at 15:19 , Jens Alfke wrote: >>> >>> On Dec 9, 2015, at 2:56 PM, Rick Mann wrote: One of the WWDC videos stressed that iOS apps are given no more

Re: Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 3:55 PM, Rick Mann wrote: > >> >> On Dec 9, 2015, at 15:50 , SevenBits > > wrote: >> >> Is it a matter of building with an newer SDK? > > I don't think so; we're building with the latest. You are probably running scaled up. If you add a de

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 3:36 PM, Rick Mann wrote: > > >> On Dec 9, 2015, at 15:19 , Jens Alfke wrote: >> >> >>> On Dec 9, 2015, at 2:56 PM, Rick Mann wrote: >>> >>> One of the WWDC videos stressed that iOS apps are given no more than 600 MB >>> of RAM. Our app is VERY RAM-intensive. >> >>

Re: NSView -identifier - is there more to it?

2015-12-09 Thread Quincey Morris
On Dec 9, 2015, at 15:17 , Jonathan Mitchell wrote: > > Does AppKit make any use of NSView -identifier to influence actual rendering > behaviour? Accessibility APIs? According to the docs, it’s used for 2 purposes: 1. For cell views of view-based table views, it is the identifier passed into

Re: Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 15:50 , SevenBits wrote: > > Is it a matter of building with an newer SDK? I don't think so; we're building with the latest. > > On Wednesday, December 9, 2015, Rick Mann wrote: > Our app, which seems to run just fine on iPad Pro, nevertheless presents an > old-style ke

Re: Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread SevenBits
Is it a matter of building with an newer SDK? On Wednesday, December 9, 2015, Rick Mann wrote: > Our app, which seems to run just fine on iPad Pro, nevertheless presents > an old-style keyboard when editing fields. The iPad Pro has a (graphical) > keyboard with more keys than previous devices. B

Re: iPad Pro apps given more memory?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 15:19 , Jens Alfke wrote: > > >> On Dec 9, 2015, at 2:56 PM, Rick Mann wrote: >> >> One of the WWDC videos stressed that iOS apps are given no more than 600 MB >> of RAM. Our app is VERY RAM-intensive. > > Slightly off-topic, but I wonder if you could use mmap to give

Re: iPad Pro apps given more memory?

2015-12-09 Thread Jens Alfke
> On Dec 9, 2015, at 2:56 PM, Rick Mann wrote: > > One of the WWDC videos stressed that iOS apps are given no more than 600 MB > of RAM. Our app is VERY RAM-intensive. Slightly off-topic, but I wonder if you could use mmap to give your app more address space? Create a big empty file, mmap it

NSView -identifier - is there more to it?

2015-12-09 Thread Jonathan Mitchell
The docs for the NSUserInterfaceItemIdentification protocol for @property(copy) NSString *identifier say: If you create an item in Interface Builder and do not set a value for this string, a unique value is created for the item when the nib file is loaded. and You should not change the value

Re: Determining underlying type of array in swift?

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 14:57 , Quincey Morris > wrote: > > On Dec 9, 2015, at 14:35 , Rick Mann wrote: >> >> If I have var foo : [Int], how can I get that type, Int? I need to get the >> size of each element. > > I imagine there’s a direct way, but I can’t find it in a program. You can do >

Re: NSViewController -identifier unrecognized selecto problem

2015-12-09 Thread Jonathan Mitchell
HI Kyle. Thanks for that. I totally missed the fact that NSUserInterfaceItemIdentification is a recent addition. Looks like I will just have to refactor. J > On 9 Dec 2015, at 21:19, Kyle Sluder wrote: > > On Wed, Dec 9, 2015, at 11:20 AM, Jonathan Mitchell wrote: >> NSViewController conforms t

Re: Determining underlying type of array in swift?

2015-12-09 Thread Quincey Morris
On Dec 9, 2015, at 14:35 , Rick Mann wrote: > > If I have var foo : [Int], how can I get that type, Int? I need to get the > size of each element. I imagine there’s a direct way, but I can’t find it in a program. You can do something like this: strideofValue (foo [0])

iPad Pro apps given more memory?

2015-12-09 Thread Rick Mann
One of the WWDC videos stressed that iOS apps are given no more than 600 MB of RAM. Our app is VERY RAM-intensive. On iPad pro, very large documents continue to run without crashing like they do on previous devices. Does the iPad Pro allow apps more RAM? TIA, -- Rick Mann rm...@latencyzero.co

Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread Rick Mann
Our app, which seems to run just fine on iPad Pro, nevertheless presents an old-style keyboard when editing fields. The iPad Pro has a (graphical) keyboard with more keys than previous devices. But ours shows a blown-up version of the older keyboard. No matter what search term I use, I can't fi

CG Error with popovers - known issue?

2015-12-09 Thread Graham Cox
I’m getting this message logged when I show a popover sometimes: Dec 10 09:33:47 ##myApp##[4602] : Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored.Please fix this problem. Stack trace

Determining underlying type of array in swift?

2015-12-09 Thread Rick Mann
If I have var foo : [Int], how can I get that type, Int? I need to get the size of each element. Alternatively, I need the size of the array in bytes. I'd like to write the code generically. E.g., in C, I could do this: int myArray[] = ...; sizeof(*myArray) Even if myArray is empty or NULL. --

Re: Scroll-vs-zoom for scroll balls

2015-12-09 Thread Rick Mann
> On Dec 9, 2015, at 14:14 , Graham Cox wrote: > > >> On 10 Dec 2015, at 8:20 AM, Rick Mann wrote: >> >> Is it -scrollWheel: > > > Yes. > > > >> For robustness, I'd like to have any momentum continue to apply to the zoom >> operation, even if the user releases the meta key before the m

Re: Scroll-vs-zoom for scroll balls

2015-12-09 Thread Graham Cox
> On 10 Dec 2015, at 8:20 AM, Rick Mann wrote: > > Is it -scrollWheel: Yes. > For robustness, I'd like to have any momentum continue to apply to the zoom > operation, even if the user releases the meta key before the momentum scroll > ends. Personally I dislike ‘momentum’, it conflicts

Scroll-vs-zoom for scroll balls

2015-12-09 Thread Rick Mann
In the past, I've always hated that non-Mac apps (e.g. CAD programs, Google Maps, etc.) misinterpret the scroll ball on my Mighty Mouse, or two-finger gestures on the trackpad, as zoom and not pan. But there is a certain convenience to being able to zoom precisely with these gestures. I'd like

Re: NSViewController -identifier unrecognized selecto problem

2015-12-09 Thread Kyle Sluder
On Wed, Dec 9, 2015, at 11:20 AM, Jonathan Mitchell wrote: > NSViewController conforms to NSUserInterfaceItemIdentification so should > implement > @property (nullable, copy) NSString *identifier; > > I build my app on 10.11 with a deployment target of 10.9 > > Om 10.10 and 10.11 no issues. > On

Re: LSSharedFIleList API deprecated

2015-12-09 Thread Greg Weston
> I opened a radar a while back and got this answer: > > "Shared file lists are no longer supported. There is no exact replacement > API.” > “If you want to manage your recent documents list, you should use > NSDocumentController." > “If you want to run a background tool independent of your main

Re: NSViewController -identifier unrecognized selecto problem

2015-12-09 Thread Quincey Morris
On Dec 9, 2015, at 09:20 , Jonathan Mitchell wrote: > > On 10.9 I get > > 'NSInvalidArgumentException', reason: '-[TSToolbarGroup identifier]: > unrecognized selector sent to instance 0x6018ee10’ You get this … when? When the NIB is loaded? > TSToolbarGroup is an NSViewController subclass

NSViewController -identifier unrecognized selecto problem

2015-12-09 Thread Jonathan Mitchell
NSViewController conforms to NSUserInterfaceItemIdentification so should implement @property (nullable, copy) NSString *identifier; I build my app on 10.11 with a deployment target of 10.9 Om 10.10 and 10.11 no issues. On 10.9 I get 'NSInvalidArgumentException', reason: '-[TSToolbarGroup ident

Custom UIView delegate - .ValueChanged?

2015-12-09 Thread Eric E. Dolecki
I have a custom UIView and I would like to hook it up to .ValueChanged just like with sliders, etc. Is there a bit of sample code in how to wire such a custom delegate up? Thanks, Eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n