ios 4 play video in backgroud?

2010-10-20 Thread Dong Linlan
Hi! Since ios 4 support multi tasking, I want my app to continue play video in the background when press home button. By it seems that apple doesn't have API for that, or I should switch to audio player and play it when quit the app. PS. I use http live streaming to play movie, but it seems that

Re: Iphone view from object not from controller.

2010-10-20 Thread Fritz Anderson
I am embarrassed to have answered an iPhone question as though it were an OS X problem. I was thrown by the reference to "the currently topmost windows controller." Still, the general principles hold: This doesn't smell good for conformance to MVC, and that's a sign of trouble. The view contro

MPMoviePlayerViewController orientation

2010-10-20 Thread Rainer Standke
Hello, I have an iPhone project where I am using an MPMoviePlayerViewController to display a movie. It is initialized with a URL, and the movie does indeed start playing, in portrait orientation. I want this to happen in landscape orientation, ideally doing autorotations. In my subclass of MP

Core Data Sequence Problem

2010-10-20 Thread Richard Somers
I have a core data document based application with a problem. Some of the managed objects save a reference to a graphic context. These managed objects create graphic resources that are subsequently cleaned up in 'didTurnIntoFault'. This works fine except for the following condition: A docum

Re: Iphone view from object not from controller.

2010-10-20 Thread Fritz Anderson
On 19 Oct 2010, at 10:01 PM, Sandro Noël wrote: > I am wondering if there is a way to ask the currently topmost windows > controller to show a view... > from a descendant of NSObject that has no clue of the view stack, > > if so, how do I get a reference to that view controller from that NSObj

Re: Set TextView font in IB

2010-10-20 Thread Jerry Krinock
On 2010 Oct 20, at 08:59, Hans van der Meer wrote: > In IB I have added a Text View to my window. Now I would like to have it show > its contents in a chosen font. > However, if I select the Text View in IB and apply the Font panel, nothing > has changed when I run the application: the fotn cho

Re: dispatch_sync() lockup workaround

2010-10-20 Thread Thomas Clément
On 20 oct. 2010, at 03:15, Abhi Beckert wrote: > According to the documentation dispatch_sync(dispatch_get_main_queue(), ^{ > ... }) will lockup if you are already on the main queue. Best is to use dispatch_async() instead. Thomas___ Cocoa-dev maili

Set TextView font in IB

2010-10-20 Thread Hans van der Meer
In IB I have added a Text View to my window. Now I would like to have it show its contents in a chosen font. However, if I select the Text View in IB and apply the Font panel, nothing has changed when I run the application: the fotn chosen is not used. How can I preset a font-size combination in

Re: How to create secondary Thread that listens to event taps?

2010-10-20 Thread René v Amerongen
Having something similar a few days back and did also use the second thread, I am curious and looking for a sample or at least more information how to do the custom CFRunLoopSource solution. Any info on that for us? Thanks in advance. René Op 20 okt 2010, om 07:44 heeft Chris Hanson het volgen

Re: How to create secondary Thread that listens to event taps?

2010-10-20 Thread Rainer Brockerhoff
At 22:44 -0700 19/10/10, Chris Hanson wrote: >On Oct 19, 2010, at 12:41 PM, Rainer Brockerhoff wrote: > >> A too-low value will make your thread activate too often (making it use more >> CPU when idle) and a too-high value will make it too slow to react to >> "condition" being set to NO. I usuall