Re: universal app - with iPad disabled

2014-06-03 Thread Torsten Curdt
Thanks folks! On Sun, Jun 1, 2014 at 2:08 AM, Roland King wrote: > It's right there on the deployment info tab of the app. 'Devices: > Universal/iPhone/iPad' > > > On 1 Jun, 2014, at 4:11 am, Torsten Curdt wrote: > >> I know it sounds strange at first - but... >> >> I am working on an universal

Re: CoreData Question

2014-06-03 Thread Keary Suska
On Jun 2, 2014, at 7:38 PM, Laurent Daudelin wrote: > I have what I think is a simple CoreData question. > > Suppose I have an Employee table and a City table, a little bit like the > CoreData documentation. Each employee resides in a city. > > Now, multiple employees can reside in the same cit

iOS - NSOperation/NSOperationQueue Question

2014-06-03 Thread Dave
Hi, I think this has been covered before, but all the searches I’ve done don’t really cover what I’d like to do. I have an API that has two modes of operation, Sync and Async. In Sync mode calls to the API MUST be on a background thread and the data is returned to the caller with a possibility

Re: Getters/Setters via Property/Synthesize...

2014-06-03 Thread Keary Suska
On Jun 2, 2014, at 8:31 PM, Peters, Brandon wrote: > Is there anything that could cause the getter and setter not to be generated > properly? I have my properties declared: > > @property (assign) float mass, appliedForce; > > In the implementation file: > > @synthesize mass = _mass; > > Then

Re: Understanding ARC

2014-06-03 Thread Dave
Hi, The only time you need to worry about autoreleased objects (if your App is 100% ARC), is when you call third party (including Apple) APIs. Even then it shouldn’t really cause a problem unless you are running in a loop which doesn’t call the run loop. In this case, depending on the APIs you

Re: CoreData Question

2014-06-03 Thread William Squires
On Jun 2, 2014, at 8:38 PM, Laurent Daudelin wrote: > I have what I think is a simple CoreData question. > > Suppose I have an Employee table and a City table, a little bit like the > CoreData documentation. Each employee resides in a city. > > Now, multiple employees can reside in the same c

Re: iOS - NSOperation/NSOperationQueue Question

2014-06-03 Thread Jeffrey Robert Kelley
I think you’re looking for NSOperationQueue’s -addOperations:waitUntilFinished: method. Should do what you want. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan | jeffkelley.org On Jun 3, 2014, at 5:51 AM, Dave wrote: > Hi, > > I think this has been covered before, but all the searches I’v

Re: iOS - NSOperation/NSOperationQueue Question

2014-06-03 Thread Dave
I’ve tried that, addOperations:waitUntilFinished: waits for operations currently queued to finish before adding the current operation, it doesn’t Add it to the queue and then wait for it to complete which is what I want. Thanks Dave On 3 Jun 2014, at 19:26, Jeffrey Robert Kelley wrote: > I th

Re: Getters/Setters via Property/Synthesize...

2014-06-03 Thread Peters, Brandon
Here is what I found: When the App first starts up, everything is initialized. When I press the “Advanced” button in my App’s Toolbar, awakeFromNib is called, and the “Start”, “Stop”, “Advanced”, and OGL View are “reset” to nil. But my other UI elements like sliders and such remain non-nil. On

Re: iOS - NSOperation/NSOperationQueue Question

2014-06-03 Thread Jeffrey Robert Kelley
That’s not what the documentation says: > If YES, the current thread is blocked until all of the specified operations > finish executing. If NO, the operations are added to the queue and control > returns immediately to the caller. So, if you’re experiencing different behavior, I would say tha

Re: How to write a .icns file

2014-06-03 Thread John Brownie
John Brownie wrote: Thanks for the thoughts. I am not sure that I agree with the statement that the 'icns' format is well documented. A search turned up the Wikipedia page, which is pretty cursory, but eventually led me to the IconFamily page, which looks (at a first glance) to do what I need,

Re: Getters/Setters via Property/Synthesize...

2014-06-03 Thread Graham Cox
Hi Brandon, (sorry, I called you Peter before, I see my mistake now!) I think you're flailing a bit here. I'm assuming that your interface is built using interface builder (IB), and not code - that would be sensible. However, it's sometimes easy to get confused and end up with objects made in co

Re: How to write a .icns file

2014-06-03 Thread Graham Cox
On 4 Jun 2014, at 9:00 am, John Brownie wrote: > 2. Doing it manually, I need to get a PNG representation of a particular > NSImageRep, but there doesn't seem to be a way of ensuring that I really have > an NSBitmapImageRep. Casting brings up a warning that I'm making an > assumption that the

Re: How to write a .icns file

2014-06-03 Thread John Brownie
On Wed Jun 04 2014 10:08:43 GMT+1000 (PGT) Graham Cox wrote: But as long as the rep supports being drawn, you can always create your own NSBitmapImageRep and draw any other kind of rep into it, then extract the data of the one you created as PNG. --Graham That was the trick I was missing — cr