Re: Memory leak when using new MPMoviePlayerController notifications

2010-08-29 Thread Graham Cox
On 28/08/2010, at 11:11 PM, Michael Crawford wrote: My question is this: is my technique for releasing the only reference I have to the movie controller, which is the notification object, valid? NOTE: This is the new 3.2 SDK movie player controller. -

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
I still get an error: 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0

Re: NSString / NSURL

2010-08-29 Thread Roland King
What OS are you building for? On 29-Aug-2010, at 4:14 PM, Amy Heavey wrote: I still get an error: 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
10.5 i386, On 29 Aug 2010, at 9:21AM, Roland King wrote: What OS are you building for? On 29-Aug-2010, at 4:14 PM, Amy Heavey wrote: I still get an error: 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0

Re: NSString / NSURL

2010-08-29 Thread Roland King
and when you look at the documentation for that method it was available starting with which OS version? convert your NSURL into an NSString, then use stringByAppendingPathComponent and convert it back to an NSURL again. Or use the string-based file methods instead. On 29-Aug-2010, at 4:22

Re: NSString / NSURL

2010-08-29 Thread Graham Cox
On 29/08/2010, at 10:14 AM, Amy Heavey wrote: I still get an error: On what line? Looking at the code you have mixed string paths and URLs. Pick one or the other and use it consistently. While string paths are becoming deprecated in favour of URLs, it might be easier to just use string

Non full screen video on iPhone

2010-08-29 Thread Nathan Day
Is it possible to have none full screen video on the iPhone, I have try to just get a demo app going at the moment, I tried using a UIWebView with a video tag that that doesn't start playing until it becomes full screen. Any sample projects would be appreciated. Nathan Day Software Engineer

Re: Non full screen video on iPhone

2010-08-29 Thread Roland King
try the documentation for MPMoviePlayerController On 29-Aug-2010, at 5:06 PM, Nathan Day wrote: Is it possible to have none full screen video on the iPhone, I have try to just get a demo app going at the moment, I tried using a UIWebView with a video tag that that doesn't start playing

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
Thanks everyone, I've been looking at everything and still can't quite get my head round it, basically all I want to do is copy a selected file to a new location. I'm using a coredata app, so I was trying to follow the 'default' code provided, but I'm compiling for 10.5 and it seems

Re: NSString / NSURL

2010-08-29 Thread Roland King
NSFileManager copyItemAtPath:toPath: takes two NSString's so you can't use an NSURL anyway. In fact nothing in that code needs an NSURL. Get rid of that NSURL stuff (note: typed in mail) NSString *imagePath = [ [ [ self applicationSupportFolder ] stringByAppendingPathComponent:@images ]

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
Thank You! I had been trying to do that but couldn't get the brackets right, sometimes you just need to start a fresh line instead of trying to edit don't you. That's working now and is perfect, Thank you for your time and help everyone, Many Thanks Amy On 29 Aug 2010, at 10:43AM,

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread Alex Kac
Ah, I just read the Layer part and didn’t think of a CGLayer. You are right - a CGLayer has nothing in common. That’s what I get for reading too quickly. On Aug 28, 2010, at 9:18 PM, Matt Neuburg wrote: On Aug 28, 2010, at 1:37 PM, Alex Kac wrote: I believe you need to set the scale of

NSBrowser drawing glitch

2010-08-29 Thread Sebastian Morsch
Hi! NSBrowser leaves an annoying 2-pixel gap between the right edge of a highlighted browser cell and the vertical column slider. Picture: http://dl.dropbox.com/u/86388/NSBrowserDrawingGlitch.png It does go away when the column width is changed live by the user, but reappears when the cell is

Re: NSString / NSURL

2010-08-29 Thread Greg Guerin
Amy Heavey wrote: ... I've tried just using strings, but the applicationSupportFolder returns a string, which then is immutable so I can't add to it? There's a significant misconception lurking here. None of the NSString methods for appending or deleting actually modify the NSString they

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread David Duncan
I would recommend you file a bug. -- David Duncan On Aug 29, 2010, at 9:38 AM, Matt Neuburg m...@tidbits.com wrote: On or about 8/28/10 9:31 PM, thus spake David Duncan david.dun...@apple.com: In the case of iOS for example, caching contents to CGLayers is rarely useful because it is

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread Matt Neuburg
On or about 8/28/10 9:31 PM, thus spake David Duncan david.dun...@apple.com: it is usually far more useful to use a hardware cache, which means CALayer or UIView, not CGLayer. Sorry to keep coming back to this, but the documentation implies that CGLayer *is* a hardware cache - that's why I was

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread David Duncan
On Aug 29, 2010, at 11:21 AM, Matt Neuburg wrote: On or about 8/28/10 9:31 PM, thus spake David Duncan david.dun...@apple.com: it is usually far more useful to use a hardware cache, which means CALayer or UIView, not CGLayer. Sorry to keep coming back to this, but the documentation

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread Ken Ferry
On Sun, Aug 29, 2010 at 2:10 PM, David Duncan david.dun...@apple.comwrote: On Aug 29, 2010, at 11:21 AM, Matt Neuburg wrote: On or about 8/28/10 9:31 PM, thus spake David Duncan david.dun...@apple.com: it is usually far more useful to use a hardware cache, which means CALayer or

Overriding -release to break retain cycle. Was: Doc for -release not quite true

2010-08-29 Thread Jerry Krinock
On 2010 Aug 23, at 19:02, Daniel DeCovnick wrote: But it doesn't really matter since you should never be calling dealloc except from release or dealloc (as [super dealloc];) anyway. No, I haven't called -dealloc for quite a few years :) Actually, I was studying Uli Kusterer's old UKKQueue.

Re: Overriding -release to break retain cycle. Was: Doc for -release not quite true

2010-08-29 Thread Michael Ash
On Sun, Aug 29, 2010 at 5:58 PM, Jerry Krinock je...@ieee.org wrote: On 2010 Aug 23, at 19:02, Daniel DeCovnick wrote: But it doesn't really matter since you should never be calling dealloc except from release or dealloc (as [super dealloc];) anyway. No, I haven't called -dealloc for quite

sdef NSXMLParserErrorDomain error 1549 in 10.5, PowerPC

2010-08-29 Thread Jerry Krinock
When testing my app and its command-line helper in Mac OS 10.5 on a PowerPC machine, I see these annoying pairs of entries in the Console Log: sdef error: Operation could not be completed. (NSXMLParserErrorDomain error 1549.) line number: 2 I'm not sure whether or not they're related to the

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread Matt Neuburg
On or about 8/29/10 2:54 PM, thus spake Ken Ferry kenfe...@gmail.com: In practice at the moment, a CGLayer is basically a CGImage together with a CGBitmapContext.  I can think of case where something different happens, but that case still doesn't use the GPU. Cool, once again I got the

Re: Set the Cursor Position

2010-08-29 Thread Raleigh Ledet
On Aug 19, 2010, at 6:43 PM, Sherm Pendley wrote: On Thu, Aug 19, 2010 at 9:32 PM, Murat Konar mu...@pixar.com wrote: CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point); But heed the other's hints that, except for special classes of software (like a VNC app), software

Re: Create pinch/magnify event

2010-08-29 Thread Raleigh Ledet
You can not simulate these gestures. Please file a radar. -raleigh On Aug 20, 2010, at 1:42 PM, Joe Turner wrote: Hey, I'm trying to use CGEvent to create a pinch/magnify event, but I can't find any info on how to do it. I see there's a NSEventTypeMagnify for NSEvent, but the

Re: Core Data and REST

2010-08-29 Thread Chris Hanson
On Aug 28, 2010, at 10:00 AM, Andy Bell andy.b...@allbabel.com wrote: At a later date I want to use something like REST using JSON to be the backend to Core Data in the application. Is this going to be possible? Core Data only has API for creating your own atomic persistent stores - that

how do I get tracking, selection etc working with custom views in NSMenuItems?

2010-08-29 Thread Rua Haszard Morris
Hi Cocoa-dev, I'm experimenting with using NSViews in menus, and was expecting that such items could continue to use Cocoa-provided implementations of mouse tracking, selecting an item and dismissing the menu, etc. After a lot of experimentation, doc reading and googling I've managed to hook