Re: MPMoviePlayerController playhead position, setting markers to trigger events and notifications (MPMediaPlayback Protocol Reference)

2010-04-11 Thread Kevin Callahan
On Apr 11, 2010, at 8:18 PM, Kevin Callahan wrote: > As a user scrubs forward and backward through movie using > MPMoviePlayerController, what's the most efficient way to know where the > playhead is at? > Is there a simple timeStamp one can grab? > Is there a way to set markers to trigger ev

Re: NSInvocation error when closing a dirty document

2010-04-11 Thread Jerry Krinock
Brad, you're overriding a method for a strange purpose, and it looks like you're examining an argument to see if it is a certain Apple private selector, and all this is done to achieve something which is quite ordinary, namely binding your data model to a combo box and a text view. When you fin

Re: Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Jens Alfke
You could use MYTask, or at least look at how it’s implemented, instead of writing your own code. NSTask is surprisingly tricky to use if you want to read the task output. http://bitbucket.org/snej/myutilities/src/tip/MYTask.h —Jens___ Cocoa-dev mail

MPMoviePlayerController playhead position, setting markers to trigger events and notifications

2010-04-11 Thread Kevin Callahan
As a user scrubs forward and backward through movie using MPMoviePlayerController, what's the most efficient way to know where the playhead is at? Is there a simple timeStamp one can grab? Is there a way to set markers to trigger events and notifications? Thanks, Kevin Accessorizer:

Re: Cant read second table from same sqlite database iphone

2010-04-11 Thread charisse napeÿfffff1as
I forgot to change the index to 1 but anyway I finally got it working. I guess its a copy problem from my createDatabaseIfNeeded function. since I already have a copy of the databse in the Users/Documents in the iphone simulator, after I've added data inside the second table, it wouldn't reflect

Re: Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Ken Thomases
On Apr 11, 2010, at 3:18 PM, Rasmus Skaarup wrote: > On 11/04/2010, at 21.17, Ken Thomases wrote: > >> On Apr 8, 2010, at 9:57 AM, Rasmus Skaarup wrote: > >>> [[NSNotificationCenter defaultCenter] addObserver:self >>> >>>

Re: Table with cells as dragging destination?

2010-04-11 Thread Graham Cox
On 09/04/2010, at 1:26 AM, Izak van Langevelde wrote: > I implemented the table as an NSTableView with NSImageCells, I know about the > standard drag and drop for table rows. > However, I am clueless about how to use cells as dragging destination. > Am I supposed to subclass NSTableView, and imp

Re: NSInvocation error when closing a dirty document

2010-04-11 Thread Brad Stone
For future reference, I needed to end editing in the textView or the combo boxes to prevent the NSInvocation error. I did this by making the window the firstResponder in my NSDocument class with the saveDocumentWithDelegate method only when the window is being closed. This is not necessary whe

Re: Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Rasmus Skaarup
On 11/04/2010, at 21.17, Ken Thomases wrote: > On Apr 8, 2010, at 9:57 AM, Rasmus Skaarup wrote: >> [[NSNotificationCenter defaultCenter] addObserver:self >> >> selector:@selector(threadPipeReader:) >>

Re: Cant read second table from same sqlite database iphone

2010-04-11 Thread Andrew Farmer
On 10 Apr 2010, at 18:02, charisse napeÿf1as wrote: >//get the name and the score >int iDen = sqlite3_column_int(statement, 0); >NSString* name = [NSString stringWithUTF8String:(char > *)sqlite3_column_text(statement, 0)]; Surely column 0 cannot be both an

Re: Drag and drop (NSCollectionView)?

2010-04-11 Thread Nick Zitzmann
On Apr 9, 2010, at 2:06 PM, Alex Fererro wrote: > *but none of the following callbacks on dropping:* > – collectionView:validateDrop:proposedIndex:dropOperation: > and > – collectionView:acceptDrop:index:dropOperation: > > Any idea on what am missing here? Did you remember to register the view'

Re: Automator Actions and CFBundleExecutable key

2010-04-11 Thread Scott Ribe
> There are no other warnings tossed out during either compilation > Any thoughts? Compare the build transcripts for debug vs release for clues as to why debug is not producing an executable. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice

Re: Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Ken Thomases
On Apr 8, 2010, at 9:57 AM, Rasmus Skaarup wrote: > I'm trying to execute a task in the background and parsing the output from > the task along the way. However I get the NSTaskDidTerminateNotification > before all the output from the task has been delivered by > NSFileHandleReadCompletionNotif

Re: Changing the drag image on the fly

2010-04-11 Thread Seth Willits
On Apr 8, 2010, at 8:14 PM, Iain Delaney wrote: > If I understand your requirements correctly, this blog posting should be of > help: http://joshua.nozzi.name/2009/10/jlndrageffectmanager/ > It discusses changing the drag image based on the underlying view, and > provides sample code for the eff

Re: nstableview in drawer resetting custom cursor

2010-04-11 Thread Quincey Morris
On Apr 8, 2010, at 00:27, Nestor Cardozo wrote: > This works fine. The problem is that when an object is added to the content > array (a new row is added to the NSTableView), the mouse cursor is reset to > the default arrow cursor. Even though, the cursor when the mouse is inside > the NSView i

Re: Cant read second table from same sqlite database iphone

2010-04-11 Thread Ben Trumbull
I'm afraid I can't be much more help if you don't have the return codes from each of the SQLite statements. I do note in the second method, you're asking for column values out of order, which is pretty unusual. - Ben On Apr 10, 2010, at 6:42 PM, charisse napeÿf1as wrote: > I was able to s

Re: Cocoa scripting support - background helper app

2010-04-11 Thread Bill Cheeseman
On Apr 11, 2010, at 11:20 AM, jonat...@mugginsoft.com wrote: > This explains the presence of Keychain Scripting.app in > /system/library/scripting additions. Correct. Faceless Background Applications (FBAs) are often preferred over scripting additions (OSAXen) for a number of reasons, includin

Re: Static Libary which links against Foundation

2010-04-11 Thread Jens Alfke
On Apr 11, 2010, at 5:07 AM, Christian Ziegler wrote: > it makes sense to convert this library to a static library. I did that and > stumbled upon the problem that my test app (C-Shell-Toll) now has to link > against Foundation. I would like to avoid that since the library should > encapsulat

Re: Cant read second table from same sqlite database iphone

2010-04-11 Thread Jens Alfke
On Apr 10, 2010, at 6:02 PM, charisse napeÿf1as wrote: > I get nothing You get result codes from each sqlite API call at least. What are they? What happens if you run the second piece of code without having run the first one? Experiment. At a higher level, consider using an existing, alre

Drag and drop (NSCollectionView)?

2010-04-11 Thread Alex Fererro
Hi Experts, Am trying to implement "drag and drop" for a NSCollectionView (similar to icon view in Finder), although on starting the drag I get following callbacks: – collectionView:writeItemsAtIndexes:toPasteboard: and – collectionView:draggingImageForItemsAtIndexes:withEvent:offset: *but none o

Re: Using a SOAP Web Service from iPhone

2010-04-11 Thread Jens Alfke
On Apr 9, 2010, at 8:52 AM, Dru Satori wrote: > [soapRequestXml appendFormat:@"\t\t\t<%@>%@\n", paramName, paramValue, > paramName]; Minor note: I hope none of your parameter values contain any XML metacharacters like quotes or angle-brackets, or you’re going to at minimum generate invalid XM

Re:Changing the drag image on the fly

2010-04-11 Thread Iain Delaney
If I understand your requirements correctly, this blog posting should be of help: http://joshua.nozzi.name/2009/10/jlndrageffectmanager/ It discusses changing the drag image based on the underlying view, and provides sample code for the effect. Iain Delaney iain.dela...@gmail.com www.lucernesys.

Table with cells as dragging destination?

2010-04-11 Thread Izak van Langevelde
What I need is a table where some columns show images as data. It should be possible to drag images and image files onto these cells. I implemented the table as an NSTableView with NSImageCells, I know about the standard drag and drop for table rows. However, I am clueless about how to use cells

Problem with reading an NSPipe->NSFileHandle to end

2010-04-11 Thread Rasmus Skaarup
Hi, I'm trying to execute a task in the background and parsing the output from the task along the way. However I get the NSTaskDidTerminateNotification before all the output from the task has been delivered by NSFileHandleReadCompletionNotification - and I am not able to squeeze much more (bu

nstableview in drawer resetting custom cursor

2010-04-11 Thread Nestor Cardozo
I am adding objects to the content array of a NSArrayController by clicking in an NSView. When doing this, the mouse cursor is set to a cross-hair cursor. The contents of the NSArrayController are displayed in a NSTableView in an NSDrawer (the columns of the NSTableView are bound to the contents

Re: Cocoa scripting support - background helper app

2010-04-11 Thread jonat...@mugginsoft.com
On 11 Apr 2010, at 15:52, Bill Cheeseman wrote: > > On Apr 11, 2010, at 10:14 AM, jonat...@mugginsoft.com wrote: > >> My questions are: >> >> 1. Presumably I have to target a fully fledged application bundle and cannot >> somehow route my AE requests to the foundation tool itself. >> >> 2. C

Re: Cocoa scripting support - background helper app

2010-04-11 Thread Bill Cheeseman
On Apr 11, 2010, at 10:14 AM, jonat...@mugginsoft.com wrote: > My questions are: > > 1. Presumably I have to target a fully fledged application bundle and cannot > somehow route my AE requests to the foundation tool itself. > > 2. Can I embed the helper app in the main app bundle and engineer

Cocoa scripting support - background helper app

2010-04-11 Thread jonat...@mugginsoft.com
My Cocoa app consists of GUI component and an agent foundation component in a conventional bundle. The agent can execute without the GUI to provide a network accessible service. I would like AppleScripts run by the foundation tool to be able to target a scriptable helper app. I would prefer NOT

Re: QCRenderer.... how do you do that?: solved

2010-04-11 Thread Eric Smith
All, I had tried to create this attached to an OpenGLContext, but apparently didn't do it right. I found the answer at: http://developer.casgrain.com/?p=4 Problem solved. Eric On Apr 10, 2010, at 6:56 PM, Eric Smith wrote: > I'm trying to use a Quartz Composer filter in a cocoa app. I've pu

Static Libary which links against Foundation

2010-04-11 Thread Christian Ziegler
Hi all! I have written a dynamic library which uses Foundation and defines an public interface in C. To test this I added a C-Shell-Tool target which includes the public header and uses both C APIs. Everything works fine. Since the future user of this library will have to write a wrapper in a d

Re: ObjC question

2010-04-11 Thread Aaron Burghardt
On Apr 10, 2010, at 9:11 PM, Seth Willits wrote: > On Apr 10, 2010, at 5:11 PM, Tony Romano wrote: > >> When you create the file system event, you can pass a void * via the >> structure which is accessible in the event callback. In this pointer, I >> want to pass my Volume object so I know wh

Re: MainMenu.nib won't load

2010-04-11 Thread Ulf Dunkel
Hi Peter. Thank you for your reply. Is there any logical reason which could explain that - even if our code would call NSDocumentController directly - this works on every user's Mac but not this single user's one? We will of course check and track everything. Thank you again for your advice.