Crash when printing (including printing to PDF)

2012-12-06 Thread John Brownie
I am working on implementing printing, and have it working to the point where the preview in the print sheet works. However, I get a crash if I then go on to print or go to PDF (Open in Preview, Save as PDF). In the print case, I get this crash: 2012-12-06 18:40:01.757 MyApp[43204:403] -[__NSC

Re: How to capture a video stream

2012-12-06 Thread gary . gardner
> On Dec 5, 2012, at 19:53 , gary.gard...@brokensoftware.com wrote: > >> Do I need to use CoreMedia to actually get an image from the >> sampleBuffer? >> Using Xcode, it appears that UIImage is for iOS (this is just a >> supposition). So XCode changes the code to CIImage. >> >> If this is the wron

Re: NSOperation Efficiency

2012-12-06 Thread Gerriet M. Denkmann
On 6 Dec 2012, at 05:33, Graham Cox wrote: > > On 05/12/2012, at 8:09 PM, Gerriet M. Denkmann wrote: > >> for( NSUInteger i = 0; i < self.nbrWork; i++ ) >> { >> GmdOperationBasis *m2 = [ [ GmdOperationBasis alloc ] init ]; >> [ self.operationQueue addOperation

Re: overriding a method with NSObject's version

2012-12-06 Thread Ariel Feinerman
- (id) valueForKey: (NSString *) { const char *types = [[NSString stringWithFormat: @"%s%s%s%s", , @encode(id), @encode(id), @encode(SEL), @encode(id)] UTF8String]; if ([self class] == [MyClass class]) { IMP function = class_getMethodImplementation([NSObject class], @selector( valueForKey:)); c

Re: Crash when printing (including printing to PDF)

2012-12-06 Thread Fritz Anderson
On 6 Dec 2012, at 2:47 AM, John Brownie wrote: > I am working on implementing printing, and have it working to the point where > the preview in the print sheet works. However, I get a crash if I then go on > to print or go to PDF (Open in Preview, Save as PDF). In the print case, I > get this

Remote control desktop from iPhone

2012-12-06 Thread Eric E. Dolecki
I'm about to embark on a local project that requires an iOS app to be able to send string commands to a running OS X application. Essentially a remote control for the OS X app. Without having to do a lot of research and the banging of my head against the fact that there is currently no way to use

Re: Remote control desktop from iPhone

2012-12-06 Thread Alex Zavatone
I think Erica Sadun did a bonjour service example for the iPhone a few years ago, but there are samples for iOS Bonjour in the dev docs. Also, this is up on Google Code and might help point you in the right direction: http://code.google.com/p/telekinesis/ On Dec 6, 2012, at 1:59 PM, Eric E. Dol

Re: Remote control desktop from iPhone

2012-12-06 Thread Gene Crucean
Maybe look into using XMPP for this. Yes it's an instant messaging protocol... but it can (and is) used for much more than that. All it does is transmit xml packets which can be used to control pretty much anything. Here is a nice web app that communicates with KVM via xmpp. http://archipelproject.

Re: Remote control desktop from iPhone

2012-12-06 Thread Nick Zitzmann
On Dec 6, 2012, at 11:59 AM, Eric E. Dolecki wrote: > I'm about to embark on a local project that requires an iOS app to be able > to send string commands to a running OS X application. Essentially a remote > control for the OS X app. > > Without having to do a lot of research and the banging o

Re: Remote control desktop from iPhone

2012-12-06 Thread Jens Alfke
On Dec 6, 2012, at 11:46 AM, Nick Zitzmann wrote: > MYNetwork will get you half-way there: > What Nick said. (Disclaimer: I wrote MYNetwork.) It does the TCP client and server stuff for you, and Bonjour advertising & discovery. It also implemen

Re: NSOperation Efficiency

2012-12-06 Thread Graham Cox
On 06/12/2012, at 8:51 PM, Gerriet M. Denkmann wrote: > I am using Arc. And I used Instruments Leaks, which did not show any. > Are you sure that this leaks under Arc? > Oh, sorry, forget it. I'm still not used to seeing code like this and it not screaming "LEAK" at me. Maybe one of thes

Re: Crash when printing (including printing to PDF)

2012-12-06 Thread John Brownie
Fritz Anderson wrote: On 6 Dec 2012, at 2:47 AM, John Brownie wrote: I am working on implementing printing, and have it working to the point where the preview in the print sheet works. However, I get a crash if I then go on to print or go to PDF (Open in Preview, Save as PDF). In the print c