Re: Mac App Store requirements

2011-04-11 Thread Artemiy Pavlov
Thanks for all the suggestions, guys! Artemiy. On 11 Apr 2011, at 03:55, Laurent Daudelin wrote: On Apr 10, 2011, at 16:45, Todd Heberlein wrote: On Apr 10, 2011, at 4:32 PM, davel...@mac.com wrote: And you also have add code to verify a valid receipt. There's a few samples of how to

RE: How To Increment CALayer Retain Count?

2011-04-11 Thread steven Hooley
I know its not very popular, but I've disciplined myself to set all variables (including stack) to their low or unused state when finished with them. It helps locate reuse problems in Debug builds (and I really don't care a bit about the 3 cycles). The optimizer can remove it later if it

Re: How To Increment CALayer Retain Count?

2011-04-11 Thread Jeffrey Walton
On Mon, Apr 11, 2011 at 5:03 AM, steven Hooley steven.hoo...@gmail.com wrote: I know its not very popular, but I've disciplined myself to set all variables (including stack) to their low or unused state when finished with them. It helps locate reuse problems in Debug builds (and I really don't

Determine Error from Webview loadRequest

2011-04-11 Thread Jeffrey Walton
Hi All, How does one determine if loadRequest: has failed? I'm pretty sure the webview could not handle the document passed to it (the view is black), but I don't know how to test for the failure. The documentation for loadRequest [1] does not mention error conditions or testing. Jeff [1]

bitmapData leak

2011-04-11 Thread Jonathan Taylor
I am battling a leak in my code and can't work out what I am doing wrong. I have a loop which accesses the raw bitmap data from a series of TIFF files I load from disk. My calls to [bitmapRep bitmapData] seem to (understandably) allocate memory, but I cannot work out how to allow that memory to

Re: Determine Error from Webview loadRequest

2011-04-11 Thread Jeffrey Walton
On Mon, Apr 11, 2011 at 7:33 AM, Jeffrey Walton noloa...@gmail.com wrote: Hi All, How does one determine if loadRequest: has failed? I'm pretty sure the webview could not handle the document passed to it (the view is black), but I don't know how to test for the failure. The documentation for

Re: OCMock in Xcode 4

2011-04-11 Thread Reaves, Timothy
I believe that typically means that a compatible library can not be found; are you sure your framework is built for the target you are trying to use it with? On Sun, Apr 10, 2011 at 1:00 PM, qvacua qva...@gmail.com wrote: Hi, I'm trying to to get OCMock to work with Xcode 4. I created a new

Re: Mac App Store requirements

2011-04-11 Thread Vyacheslav Karamov
Is it required that my application has Drag'n'Drop support? 11-Apr-11 02:54, Tom Hohensee пишет: Yes I second what Todd has said. I am currently working on receipt validation for my third app store app. I did not do it for my first two apps, too many other thinks to worry about. The

Re: Mac App Store requirements

2011-04-11 Thread Graham Cox
On 11/04/2011, at 10:17 PM, Vyacheslav Karamov wrote: Is it required that my application has Drag'n'Drop support? No. Why don't you just download the requirements document? The requirements relate mainly to making sure your app plays nice, and have little to say about what functionality it

Re: Determine Error from Webview loadRequest

2011-04-11 Thread Michael Dautermann
On Apr 11, 2011, at 8:04 AM, Jeffrey Walton wrote: I should have mentioned. I working with local files per Using UIWebView to display select document types, http://developer.apple.com/library/ios/#qa/qa1630/_index.html. if you set your view controller to respond to UIWebViewDelegate

Re: NSManagedObjected isInserted

2011-04-11 Thread Mike Abdullah
On 10 Apr 2011, at 19:52, Carter R. Harrison wrote: On Apr 10, 2011, at 1:29 PM, Quincey Morris wrote: On Apr 10, 2011, at 06:52, Carter R. Harrison wrote: Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from

Re: Mac App Store requirements

2011-04-11 Thread Vyacheslav Karamov
I have $99 account, so I'll try to find the doc. 11-Apr-11 15:24, Graham Cox пишет: On 11/04/2011, at 10:17 PM, Vyacheslav Karamov wrote: Is it required that my application has Drag'n'Drop support? No. Why don't you just download the requirements document? The requirements relate mainly to

Re: bitmapData leak

2011-04-11 Thread Jonathan Taylor
OK, after much wailing and gnashing of teeth I have worked out my mistake. Where I wrote the following: NSImage *frameImage = [[NSImage alloc] initWithContentsOfFile:NSStringForFrameNumber(i)]; // Temp code to debug serious memory leak NSAutoreleasePool * pool =

Re: Storing a block in a CF/NSMutableDictionary?

2011-04-11 Thread Fritz Anderson
On 10 Apr 2011, at 11:39 AM, Ken Thomases wrote: I am grateful you called this to my attention, as I had been thinking that blocks were closures, in which referencing (but not, usefully, changing) stack-local variables would work. Blocks are closures and referencing stack-local variables

Re: blocks and NSInvocation question

2011-04-11 Thread Ken Thomases
On Apr 10, 2011, at 11:53 PM, John Michael Zorko wrote: I'm stumped as to why this generates a warning when I compile. Do I need to do something special with my AVURLAsset * to be able to access it from inside the block in order to add it to an NSInvocation? AVURLAsset *asset =

Re: AVFoundation and OpenGL?

2011-04-11 Thread David Duncan
On Apr 10, 2011, at 12:18 PM, John Michael Zorko wrote: I've been playing with Core Animation and AVFoundation to get some interesting results. I've a question, though, with regards to AVFoundation and OpenGL: Can I make OpenGL work with AVPlayerLayer? That depends on what you mean by

Core Data relationship fault

2011-04-11 Thread Lynn Barton
Can someone point me to an example or tutorial that shows how to get the value of a to-many relationship attribute of a Core Data entity? My application is simple and comparable to the Departments and Employees example in Apple's documents. When I select a department object I have no trouble

Re: NSManagedObjected isInserted

2011-04-11 Thread Jerry Krinock
On 2011 Apr 11, at 06:00, Mike Abdullah wrote: Think of it as being equivalent to: - (BOOL)isInserted; { return [[[self managedObjectContext] insertedObjects] containsObject:self]; } Oh! Thank you for clarifying that, Mike. I just sent Apple some Document Feedback on -isInserted.

Re: Core Data relationship fault

2011-04-11 Thread Jerry Krinock
On 2011 Apr 11, at 09:54, Lynn Barton wrote: Can someone point me to an example or tutorial that shows how to get the value of a to-many relationship attribute of a Core Data entity? My application is simple and comparable to the Departments and Employees example in Apple's documents.

NSPopUpButton, notification when selecting value/object

2011-04-11 Thread Mikael Wämundson
Hi all, I found in the reference that a notification is sent when a popup button is clicked, NSPopUpButtonWillPopUpNotification. That's good, but how about when I've selected an object or value in the popup list and released the mouse button? How can I make my application aware of that?

Re: Core Data relationship fault

2011-04-11 Thread Quincey Morris
On Apr 11, 2011, at 11:48, Jerry Krinock wrote: On 2011 Apr 11, at 09:54, Lynn Barton wrote: When I select a department object I have no trouble accessing any of its other properties, but when I try to get its employees I get only a relationship fault. I am trying to calculate a

Re: NSPopUpButton, notification when selecting value/object

2011-04-11 Thread Quincey Morris
On Apr 11, 2011, at 11:57, Mikael Wämundson wrote: I found in the reference that a notification is sent when a popup button is clicked, NSPopUpButtonWillPopUpNotification. That's good, but how about when I've selected an object or value in the popup list and released the mouse button? How

PDF Inverted colors

2011-04-11 Thread Dean Krueger
Hi,I am opening pdf's using NSPDFImageRep and converting it to a NSBitmapImageRep, writing it out as a tiff. In all most all cases, the file looks perfect, but once in awhile, I get a pdf that all the images in the PDF seem to invert. If I open that PDF in Preview.app it looks the same, all

Re: Can an image be rejected by CALayer?

2011-04-11 Thread Gabriel Zachmann
Show all the code by which the layer is configured and put into the interface if you want a more educated response. m. I'll try, it's a bit scattered throughout my program. (I was a bit hesitant to flood my original post with potentially unwanted code ...) Here goes:

Re: Can an image be rejected by CALayer?

2011-04-11 Thread David Duncan
On Apr 11, 2011, at 12:40 PM, Gabriel Zachmann wrote: As I said, some images just won't get displayed under 10.5, but the same images work fine under 10.6. Assuming this is the entirety of the code, then as mentioned previously you never set the bounds or frame of your layer. Try setting

Re: NSPopUpButton, notification when selecting value/object

2011-04-11 Thread Olivier Palliere
Hi Mikael, My best guess would the action of that button in your application. This method is called when you 'click' on the NSButton, ie after the mouse up event. Are you looking specifically for a notification? Many thanks, Oli./. -- Molowa On Apr 11, 2011, at 8:57 PM, Mikael Wämundson

Re: PDF Inverted colors

2011-04-11 Thread David Duncan
On Apr 11, 2011, at 12:15 PM, Dean Krueger wrote: Hi,I am opening pdf's using NSPDFImageRep and converting it to a NSBitmapImageRep, writing it out as a tiff. In all most all cases, the file looks perfect, but once in awhile, I get a pdf that all the images in the PDF seem to invert. If I

Re: AVFoundation and OpenGL?

2011-04-11 Thread David Duncan
On Apr 11, 2011, at 11:44 AM, John Michael Zorko wrote: I'm currently using Core Animation to show a 3D rotatable cube with videos (or other content) on each side, so each side of the cube is an AVPlayerLayer. What i've read so far seems to say that a special subclass of CALayer

Not sure about autorelease pools in NSOperations

2011-04-11 Thread G S
Hi all. I haven't really managed autorelease pools explicitly before, but the NSOperation doc says to use one in your NSOperation derivatives. My question is where to put it. The example shows the pool being created and released in the main() function, but I don't really allocate anything

SimpleTextInput sample code - caretRect not calculated correctly at times

2011-04-11 Thread Malayil George
Hi, I'm trying to follow the SimpleTextInput example project at http://developer.apple.com/library/ios/#samplecode/SimpleTextInput/Introduction/Intro.html For the most part, it works fine, but, for some reason the following results in a wierd result drawing the caretRect. 1. Type

Re: Not sure about autorelease pools in NSOperations

2011-04-11 Thread Wim Lewis
On 11 Apr 2011, at 7:38 PM, G S wrote: I haven't really managed autorelease pools explicitly before, but the NSOperation doc says to use one in your NSOperation derivatives. My question is where to put it. The example shows the pool being created and released in the main() function, but I

Re: Core Data relationship fault

2011-04-11 Thread Lynn Barton
Thanks, that helps. I need to study the Core Data Programming Guide again, and this time pay more attention to the FAQs. Lynn On 2011 Apr 11, at 09:54, Lynn Barton wrote: Can someone point me to an example or tutorial that shows how to get the value of a to-many relationship attribute of a