Layout on Mini is broken

2013-06-04 Thread Rick Mann
Hi. I've got an iOS 6.1 iPad app that lays out fine in the iPad sim and on a Retina iPad device. On the Mini, however, it gets really wonky, sometimes. See here: http://cl.ly/image/2Q0p2z3x0D3S (I've crudely erased our giant logo from the center of the screen and our app name from the

Re: OutlineView shouldSelectItem Being Called Twice

2013-06-04 Thread Graham Cox
On 05/06/2013, at 11:56 AM, Chris Tracewell wrote: > Is this normal behavior? Thanks for the help. Probably. This method should just answer the question, not attempt to interrupt things by showing an alert etc. You'll need to put that functionality elsewhere. --Graham _

OutlineView shouldSelectItem Being Called Twice

2013-06-04 Thread Chris Tracewell
I've got a view controller set up as the delegate for an outlineView. The view controller implements the -(BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item delegate method. I show an alert and return NO if the user has not saved some changes or return YES if all is well. T

Re: Can using iOS camera without preview, cause app store submission problem?

2013-06-04 Thread Fritz Anderson
[I'm only now (4-Jun-2013) receiving questions from the end of May. I'm sorry if I'm reviving issues that have already had better answers.] On 29 May 2013, at 10:38 AM, Johannes Kalev wrote: > I'm writing an iOS application which is supposed to read QR code from an > accessory. Currently I'm us

Re: A question about NSScreen being autoreleased during loadNib()

2013-06-04 Thread Fritz Anderson
On 28 May 2013, at 5:50 AM, "Jacky.Seraph Mu" wrote: [On a Retina machine, after instantiating an NSWindow from a new window controller, an NSScreen pointer obtained earlier from another window/controller apparently is released, and the debugger shows funny values in its struct members. The ba

Re: Memory not being released in a timely manner

2013-06-04 Thread Jens Alfke
On Jun 4, 2013, at 8:30 AM, Jeff Johnson wrote: > The "end" of the event loop cycle is immediately before the beginning. Thus, > for example, if your app is in the background and not receiving events, then > the autorelease pool will not be drained. You can work around this by wrapping your

Re: Memory not being released in a timely manner

2013-06-04 Thread Jens Alfke
On Jun 3, 2013, at 8:59 AM, Jonathan Taylor wrote: > The program loads and processes a large number (~2000) image files, and I > believe that I am disposing of memory and draining autorelease pools > correctly. Running the program under ObjectAlloc, it never reports memory > usage over 300MB

Re: Using AVFoundation with AVCaptureAudioDataOutput for Audio playback

2013-06-04 Thread Jens Alfke
You should ask about audio questions on the coreaudio-dev list, not here. I don’t think the audio experts read this list. (It’s only recently that there have been real Cocoa-level APIs for audio at all.) —Jens smime.p7s Description: S/MIME cryptographic signature ___

Re: Memory not being released in a timely manner

2013-06-04 Thread Jonathan Taylor
Hi Jeff, Thanks very much for your reply. That's brilliant. I had tried playing around with a few "tricks" I thought might prompt a pool drain, but to no joy. It's great to have a bit of code that will do the job for that - I'll give it a go tomorrow. Cheers Jonny On 4 Jun 2013, at 16:30, Jeff

Re: Memory not being released in a timely manner

2013-06-04 Thread Seth Willits
On Jun 3, 2013, at 8:59 AM, Jonathan Taylor wrote: > ...The memory usage as reported in Activity Monitor climbs higher and higher > until, if left unattended, there is apparently no more memory available. > Clicking the mouse or switching applications causes an immediate and > significant drop

Re: Memory not being released in a timely manner

2013-06-04 Thread Jeff Johnson
Hi Johnny. This is a long-standing problem with AppKit. According to the documentation, "The Application Kit creates an autorelease pool on the main thread at the beginning of every cycle of the event loop, and drains it at the end, thereby releasing any autoreleased objects generated while pro

Re: TECConvertText returns an unknown result code

2013-06-04 Thread Sean McBride
On Tue, 4 Jun 2013 16:00:54 +0200, Thierry Cantet said: >It returns the result code -50 (result code that doesn't appear in the >lists of the result codes of this function ( >https://developer.apple.com/library/mac/#documentation/Carbon/Reference/ >Text_Encodin_sion_Manager/Reference/reference.h

TECConvertText returns an unknown result code

2013-06-04 Thread Thierry Cantet
Hello. I have an issue with TECConvertText ( https://developer.apple.com/library/mac/#documentation/Carbon/Reference/Text_Encodin_sion_Manager/Reference/reference.html ). It returns the result code -50 (result code that doesn't appear in the lists of the result codes of this function ( https

Memory not being released in a timely manner

2013-06-04 Thread Jonathan Taylor
Hi all, Can anybody advise what tools I should be using to debug a particular out of memory condition - and maybe even how I can fix it? The error that I ultimately encounter (in a 32-bit application on Snow Leopard) is: 2013-06-03 15:44:30.271 MyApplication[25115:a0f] NSImage: Insufficient memo

Using AVFoundation with AVCaptureAudioDataOutput for Audio playback

2013-06-04 Thread San Saeteurn
Hello I am trying to write an external plugin that simply reads audio from the built in microphone, obtains the raw audio data, and passes it to an SDK API. My setup is very simple, I have a single session, with a single input device (built in microphone) and a single output (AVCaptureAudioDataO

Can using iOS camera without preview, cause app store submission problem?

2013-06-04 Thread Johannes Kalev
Hi, I'm writing an iOS application which is supposed to read QR code from an accessory. Currently I'm using camera in such a way that camera preview is not displayed to a user while scanning for a QR code on an image received from camera. I'm wondering if not showing preview of camera to a user c

A question about NSScreen being autoreleased during loadNib()

2013-06-04 Thread Jacky.Seraph Mu
Hi, I am OSX developer. The problem I encountered is described as below: - (void)method1:(NSObject *)arg1 contextInfo:(NSObject *)arg2 { ... [self method2:arg1 screen:[self.windowController window].screen]; ... } - (void)method2:(NSObject *)arg1 scre