Video player dead?

2010-11-26 Thread Andrew McLaughlin
Hey list, I just updated to 4.2.1 on my iPad 3G after have been on 4.2 gm and 4.2b gm. At this point, my video player no longer plays. When I start it, all I get is a black screen. Anybody else getting this now? I hooked up to Xcode and opened the Organizer. Looking at the Console panel, I see

Re: how to redraw a view

2010-11-26 Thread Artemiy Pavlov
Hi all, sorry for a late reply, my e-mail was in moderation queue for almost a day, but I was able to find an answer in a few hours after I sent it. This did the trick for me, all is working well now: [super setNeedsDisplay:YES] P.S. This is in Mac OS X. On 26 Nov 2010, at 17:52, Uli Kust

NSTask with unzip

2010-11-26 Thread gMail.com
Hi, I can properly unzip a zip file launching a NSTask with /usr/bin/unzip The task saves the unzipped file to the disk, then a I read the unzipped file in a NSData. Well. My question is: Can I do the same job without saving the unzipped file to the disk? I have tried to set the standard output to

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread Dave Zwerdling
I always take the protocol route. You can implement other methods and do a single cast to NSObject * (or id if you don't need the NSObject methods) and then just pass around that. All you have to check for in instantiation is that it passes implementsProtocol: and then you're set. After that

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread jonat...@mugginsoft.com
On 26 Nov 2010, at 21:38, Julien Jalon wrote: > Z) ignore the warning > Z^Z) ignore that Regards Jonathan Mitchell Developer Mugginsoft LLP http://www.mugginsoft.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread Julien Jalon
Z) ignore the warning On Fri, Nov 26, 2010 at 9:44 PM, Ken Thomases wrote: > On Nov 26, 2010, at 12:27 PM, Mike Abdullah wrote: > > > C) Typecast the object to a class that is known to implement -setOrdinal: > > D) Typecast the object to id. > > Regards, > Ken > > ___

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread Ken Thomases
On Nov 26, 2010, at 12:27 PM, Mike Abdullah wrote: > C) Typecast the object to a class that is known to implement -setOrdinal: D) Typecast the object to id. Regards, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread Mike Abdullah
You have many options, in rough order of cleanness: A) Declare a protocol that your objects conform to. Make -setOrdinal: @optional B) Do [object performSelector:@selector(setOrdinal:) withObject:value] or use -setValue:forKey: C) Typecast the object to a class that is known to implement -setOr

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread Mikkel Eide Eriksen
I should have mentioned that it is declared, but obj can be one of many classes only some of which have setOrdinal: On Nov 26, 2010, at 6:46 PM, banane wrote: > declare the method in your header file. "-(void)setOrdinal;" > > On Fri, Nov 26, 2010 at 9:08 AM, Mikkel Eide Eriksen > wrote: > Hi

Re: Change duration of a running CAAnimation?

2010-11-26 Thread Matt Neuburg
On Nov 26, 2010, at 9:07 AM, Oleg Krupnov wrote: > Thanks Matt! I have already found another solution that worked pretty > well: Instead of using the repeatCount property, I set a delegate on > the animation and add another animation manually each time the > previous one ends (animationDidEnd: fi

respondsToSelector & "warning: may not respond"

2010-11-26 Thread Mikkel Eide Eriksen
Hi all, I have the following bit in my code: if ([obj respondsToSelector:@selector(setOrdinal:)]) { [obj setOrdinal:value]; } XCode gives a warning that obj may not respond to setOrdinal: which won't be a problem unless something is really screwy. But how do I get rid of the warning? O

Re: Change duration of a running CAAnimation?

2010-11-26 Thread Oleg Krupnov
Thanks Matt! I have already found another solution that worked pretty well: Instead of using the repeatCount property, I set a delegate on the animation and add another animation manually each time the previous one ends (animationDidEnd: finished:). In this way I can fully control the fromValue and

Re: iPad: UI Implications

2010-11-26 Thread Phillip Mills
On 2010-11-26, at 11:34 AM, Ricky Sharp wrote: > At a high level, you don't "go from Mac to iOS". i.e. you don't attempt to > port, clone the UI, etc. Actually, I'm going from Mac to iOS at an even higher level: programming style and patterns of object interaction. In other words, this applic

Re: Change duration of a running CAAnimation?

2010-11-26 Thread Matt Neuburg
On Thu, 25 Nov 2010 20:40:57 +0200, Oleg Krupnov said: >Is there a way to change the duration of an already running >CAAnimation, in order to change its speed? > >The animation is added explicitly via [layer addAnimation: forKey:] > >When I try to get the animation with [layer animationForKey:] an

Re: Scroll/Position Image in Scrollview that is smaller than the Scrollview

2010-11-26 Thread Matt Neuburg
On Wed, 24 Nov 2010 12:04:26 +0100, macli...@batchmaker.de (Hado Hein) said: >But when the picture is zoomed to a size smaller than the ScrollView the >picture is placed in the top left corner and no more scrolling happens. >In simple I want to center the small ImageView in the bigger ScrollView >s

Re: iPad: UI Implications

2010-11-26 Thread Ricky Sharp
On Nov 26, 2010, at 9:02 AM, Phillip Mills wrote: > I don't have any specific questions or problems associated with this but I'm > curious about attitudes, techniques, patterns, or tools that others have > found helpful going from Mac to iOS. At a high level, you don't "go from Mac to iOS". i

Re: Radio dial buttons [iOS] -sheesh

2010-11-26 Thread Matt Neuburg
On Tue, 23 Nov 2010 10:41:04 -0700, Development said: >I can't believe I missed the rotation gesture recognizer. I honestly >searched... The Xcode documentation window doesn't do a good job of listing a given class's subclasses. Use the Class Browser, or even better, try AppKiDo, which combine

Re: how to redraw a view

2010-11-26 Thread Uli Kusterer
On Nov 24, 2010, at 6:50 PM, Artemiy Pavlov wrote: > I have a view whose drawRect method draws a plot according to a few > parameters which are global variables. When I change these variables > according to the user input, I want to update that plot, so I need the > drawRect method of my view to

iPad: UI Implications

2010-11-26 Thread Phillip Mills
After having written a couple of simple iPad apps to investigate certain features, I'm now close to being feature-complete on my first serious application. I'm finding that the lack of a standard menu for centralizing actions is the hardest thing to get used to. As a result of that, I've adopt

Re: CoreText - CTFrameDraw doesn't draw paragraph's last line

2010-11-26 Thread Robert Vojta
On 26.11.2010, at 14:12, Robert Vojta wrote: Sorry, wrong mailing list, redirecting to coretext-dev ... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

[SOLVED] Re: NSFileHandleDataAvailableNotification doesn't clear the [[notification userInfo] objectForKey:NSFileHandleNotificationDataItem]

2010-11-26 Thread Wolf Stephan Kappesser
I have solved the problem while using NSFileHandleNotificationDataItem and the Notification constant NSFileHandleReadCompletionNotification. Am 24.11.2010 um 15:45 schrieb Wolf Stephan Kappesser: > Hello, > > I am trying to connect a chess engine (via UCI) to my obj-c program. > For this, I

CoreText - CTFrameDraw doesn't draw paragraph's last line

2010-11-26 Thread Robert Vojta
Hi all, I'm trying to solve my CoreText problem with paragraph text drawing. It draws my paragraph perfectly, but it doesn't draw the last line in some cases. I have no idea why. Here's the frame size calculation method ... - (CGSize)sizeThatFits:(CGSize)size { CFRange labelFitRange; CT

Re: how to redraw a view

2010-11-26 Thread Chris Hanson
On Nov 24, 2010, at 9:50 AM, Artemiy Pavlov wrote: > I have a view whose drawRect method draws a plot according to a few > parameters which are global variables. When I change these variables > according to the user input, I want to update that plot, so I need the > drawRect method of my view

Re: Objective-C Mind Map Libraries

2010-11-26 Thread Paul Ward
Try doing a search on github for cocoa, Mac and iPhone apps. Lots of indie Mac devs keep public repositories there. You might also try Bitbucket. Paul Ward Sent from my iPhone. On Nov 25, 2010, at 9:41 PM, Andrew McLaughlin wrote: > Thanks Gary... > > I'll take that as a "no". The top links

Re: Draggable On/Off button

2010-11-26 Thread jonat...@mugginsoft.com
On 26 Nov 2010, at 08:03, Swetha Chinthireddy wrote: > Hi, > > I need to create a On/Off button similar to that of Time machine's On/Off > button(similar one can be seen in Safari->Preferences->Extensions tab also). > > Is there a Cocoa built-in draggable On/Off button for Mac OS? I think t

iPhone Wifi detection and turnoff

2010-11-26 Thread SridharRao M
Hi All, Is there any way to do "iPhone app that turns off wireless to the iphone then turns it back on again on clicking of 2 buttons inside our application". Is there any framework available in iphone SDK to detect current network status and disable and enabling if it is wifi? Thanks in advanc

Draggable On/Off button

2010-11-26 Thread Swetha Chinthireddy
Hi, I need to create a On/Off button similar to that of Time machine's On/Off button(similar one can be seen in Safari->Preferences->Extensions tab also). Is there a Cocoa built-in draggable On/Off button for Mac OS? Thanks, Swetha ___ Cocoa-dev