Re: Determining available or installed RAM on iOS device?

2014-02-11 Thread Gerriet M. Denkmann
On 12 Feb 2014, at 03:00, cocoa-dev-requ...@lists.apple.com wrote: > On 11 Feb 2014, at 16:46, Jens Alfke wrote: >> [...] >> Failing that, is there at least API for determining how much RAM is >> installed on the device? This isn't reported anywhere in the Settings app, >> as far as I can tel

VCs in the Responder Chain - Again, but with a good solution?

2014-02-11 Thread Seth Willits
This is one of those topics I thought about 6 years ago, came across a decent easy-to-use solution that has worked fine so I've never really had to think about it again. Until today. All the way back to when NSViewController was added it was clear that the VC ideally should follow its view wi

Re: How do I animate Core Graphics drawing?

2014-02-11 Thread dangerwillrobinsondanger
If you don't find it first, I'll post the link later. It talks about creating custom default animations for a custom view. They show a simple example of a red rect path animation the stroke width. Unfortunately asciiwwdc doesn't include the text of the PDFs associated with each video as far as

Re: How do I animate Core Graphics drawing?

2014-02-11 Thread Rick Mann
On Feb 11, 2014, at 15:58 , dangerwillrobinsondan...@gmail.com wrote: > I don't recall the title but there was a recent WWDC video that includes this > topic. > It's not a one step process but not that hard either. Thanks. I searched asciiwwdc.com, but there are MANY videos discussing animat

Changes in -performSelectorOnMainThread: from iOS 6 to 7?

2014-02-11 Thread Rick Mann
I'm updating an old project that was built long ago, skipping udpates for iOS 5 & 6. One of the things my app does, in an NSOperation, is call -performSelectorOnMainThread: (waiting until done) as it integrates downloaded data into the Core Data store (Core Data operations all happen on the main

Re: How do I animate Core Graphics drawing?

2014-02-11 Thread dangerwillrobinsondanger
I don't recall the title but there was a recent WWDC video that includes this topic. It's not a one step process but not that hard either. Sent from my iPhone > On 2014/02/12, at 8:43, Rick Mann wrote: > > In my app, I annotate a floor plan with lines of arbitrary length and > location, cap

-[NSPersistentStoreCoordinator metadataForPersistentStoreOfType:URL:error:] foibles

2014-02-11 Thread Jerry Krinock
I use -[NSPersistentStore metadataForPersistentStoreOfType:URL:error:] for a variation of the reason stated in its documentation, which is "to retrieve the metadata from a store without the overhead of creating a Core Data stack.” Sometimes, although I can’t reproduce it, this method fails. It

How do I animate Core Graphics drawing?

2014-02-11 Thread Rick Mann
In my app, I annotate a floor plan with lines of arbitrary length and location, capped with circles (like stretchy barbells). The UZ design calls for collapsing these into a single circle placed at the center of the line when they're not being edited. There can be many (probably not more than 10

Re: NSOutlineView view-based SourceView HeaderCell text is not white when selected

2014-02-11 Thread Lee Ann Rucker
Simpler than that - set the text field back to the standard default of "Text Color", and NSTextFieldCell knows what to do, just like in cell-based. So it's just IB throwing a wrench in the works. On Feb 11, 2014, at 12:44 PM, Lee Ann Rucker wrote: > Poked at it until I got it working: by defaul

Re: NSOutlineView view-based SourceView HeaderCell text is not white when selected

2014-02-11 Thread Lee Ann Rucker
Poked at it until I got it working: by default, IB creates the Source List HeaderCell text field with 49% gray text color. Set it to white and it works as expected - gray when not selected, white when it is. Filed rdar://16040037 - the NSTextFieldCell should work the same whether in view- or ce

Re: Requiring a User to Save a Document before Being Able to Edit It

2014-02-11 Thread Kyle Sluder
On Tue, Feb 11, 2014, at 12:21 PM, SevenBits wrote: > Let’s discuss hypotheticals. Let’s say you’re developing a software > application that lets you put files together into an archive (be it .zip, > .tar.gz, whatever). Let’s say that, for your application to work > properly, you need to have the u

Requiring a User to Save a Document before Being Able to Edit It

2014-02-11 Thread SevenBits
Let’s discuss hypotheticals. Let’s say you’re developing a software application that lets you put files together into an archive (be it .zip, .tar.gz, whatever). Let’s say that, for your application to work properly, you need to have the user select a location for and save the file before they c

Re: Determining available or installed RAM on iOS device?

2014-02-11 Thread James Montgomerie
On 11 Feb 2014, at 15:46, Jens Alfke wrote: > I'm well aware that on most modern operating systems "available RAM" is not a > very informative number because virtual memory makes RAM and address space > very different things. But on iOS, as I understand it, there is no swap file > and address s

Re: Determining available or installed RAM on iOS device?

2014-02-11 Thread Uli Kusterer
On 11 Feb 2014, at 16:46, Jens Alfke wrote: > One of our QA engineers is writing some performance testing tools for our iOS > library. We'd like to record the amount of available RAM as part of the test > results, since it can affect the numbers. I don't know how to determine this, > however; a

Determining available or installed RAM on iOS device?

2014-02-11 Thread Jens Alfke
One of our QA engineers is writing some performance testing tools for our iOS library. We'd like to record the amount of available RAM as part of the test results, since it can affect the numbers. I don't know how to determine this, however; anyone know an API for it? (I'm well aware that on mo

Re: Managing image loading

2014-02-11 Thread Leonardo
Ok Jens, my method turned so complicated due to hundreds of relationships, undo, fileWrappers, copy/paste, new object IDs... That I'm going to do as you say. I am going to load the image and leave it within the NSView object. When I delete an NSView containing the image, I put its pointer within

Re: EULA presentation requirements?

2014-02-11 Thread Fritz Anderson
On 10 Feb 2014, at 7:36 PM, SevenBits wrote: > What's funny is that Xcode - distributed through the Mac App Store - does > show a license screen at first launch. This would mean that Apple is > breaking its own rules, if in fact that clause means what you say. Old Latin aphorism, which has appli

RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-11 Thread Dany Golubitsky
Hello Ken! This code is not called from the main thread. We have a different thread for drawing in order to support better fps rate. As you can see, there I no autorelease pool here, however, I tried to wrap this function with autorelease pool as described here: https://developer.apple.com/libr