Re: six things I wasn't able to do with Cocoa

2010-06-01 Thread Matt Neuburg
On Mon, 31 May 2010 18:49:14 +0100, Alastair Houghton said: >> Out of curiosity, what simpler approach to creating a list have you seen? > >While I'd be interested to hear from Bill exactly what he was expecting, I *suspect* that he's referring to the style of list control you get on other platfor

Re: six things I wasn't able to do with Cocoa

2010-05-31 Thread Alastair Houghton
On 31 May 2010, at 11:36, Uli Kusterer wrote: >> *5)** **I **can't create a simple list* >> >> I did it the only way I could -- with a table that has one column, etc. Man >> that was painful for a simple list. Is there a better way? > > I have to admit I thought AppKit's way of handling lists wa

Re: six things I wasn't able to do with Cocoa

2010-05-31 Thread Uli Kusterer
On May 27, 2010, at 9:43 PM, Bill Appleton wrote: > *1) I can't hide a file, or test if a file is hidden* > > I had to resort to FSGetCatalogInfo -- there is no way to do it through > NSFileManager, etc. Right? Hi Bill, others have already pointed to NSURL (and CFURLRef). > *2)** **I **can't *

Re: six things I wasn't able to do with Cocoa

2010-05-29 Thread Chris Hanson
On May 27, 2010, at 12:43 PM, Bill Appleton wrote: > *5)** **I **can't create a simple list* > > I did it the only way I could -- with a table that has one column, etc. Man > that was painful for a simple list. Is there a better way? In what way did you find creating an NSTableView with one colu

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
hi all, i fixed the movie poster problem as well thanks for all the help, this is a great forum have a nice weekend! best, bill On Fri, May 28, 2010 at 1:28 PM, Robert Martin wrote: > Try using the QTMovie method frameImageAtTime: withAttributes: error: > > You can specify the image si

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Jens Alfke
On May 27, 2010, at 12:43 PM, Bill Appleton wrote: > there were some things i > noticed that i couldn't do easily in Cocoa or any other 64 bit OSX API. Cocoa doesn’t claim to do everything. There are a lot of tasks that should be done using lower level APIs. > *1) I can't hide a file, or test

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Robert Martin
Try using the QTMovie method frameImageAtTime: withAttributes: error: You can specify the image size you want returned in the attributes dictionary (along with the image format). On May 28, 2010, at 2:55 PM, Bill Appleton wrote: > the remaining problem is that the movie posetr returns a size

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Jean-Daniel Dupas
Le 28 mai 2010 à 20:55, Bill Appleton a écrit : > hi Kevin, > > sorry if this is a repost, my last one was rejected for being too big > > YES, the QTMovieNaturalSizeAttribute definitely returns the size i am > looking for > > the remaining problem is that the movie posetr returns a size of 100

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Alex Curylo
On 2010-05-28, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote: > i've tried everything -- how do other people get movie posters and/or grab > movie frames? With classic QuickTime if there was no poster frame specifically set in the movie QuickTime would reliably return the first frame. Wi

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
hi Kevin, sorry if this is a repost, my last one was rejected for being too big YES, the QTMovieNaturalSizeAttribute definitely returns the size i am looking for the remaining problem is that the movie posetr returns a size of 100 x 100 so when i capture the poster it is really pixelated i've

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread James Walker
On 5/28/2010 11:18 AM, Alastair Houghton wrote: On 28 May 2010, at 18:25, James Walker wrote: On 5/27/2010 12:43 PM, Bill Appleton wrote: *1) I can't hide a file, or test if a file is hidden* I had to resort to FSGetCatalogInfo -- there is no way to do it through NSFileManager, etc. Right?

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Alastair Houghton
On 28 May 2010, at 18:25, James Walker wrote: > On 5/27/2010 12:43 PM, Bill Appleton wrote: >> *1) I can't hide a file, or test if a file is hidden* >> >> I had to resort to FSGetCatalogInfo -- there is no way to do it through >> NSFileManager, etc. Right? > > Since there are several ways to hid

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread James Walker
On 5/27/2010 12:43 PM, Bill Appleton wrote: *1) I can't hide a file, or test if a file is hidden* I had to resort to FSGetCatalogInfo -- there is no way to do it through NSFileManager, etc. Right? Since there are several ways to hide a file, I don't think FSGetCatalogInfo will necessarily tel

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Sean McBride
On Thu, 27 May 2010 12:43:42 -0700, Bill Appleton said: >*2)** **I **can't **get the current caret blink rate in milliseconds* > >I used to call GetCaretTime, but now I just use 500 milliseconds. Eeek! >Where is the current blink rate? Please don't tell me I don't need it, we >implement our own sc

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Wade Williams
On May 28, 2010, at 11:04 AM, Kevin Wojniak wrote: >> *4)** **I **can't call the printing code* >> >> I know, the printing code calls me. But other platforms don't work like >> this. I eventually used Core Printing and the Cocoa dialogs by sub-classing >> and faking out NSPrintPanel. Is there a

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Kevin Wojniak
Did you try QTMovieNaturalSizeAttribute? http://developer.apple.com/mac/library/technotes/tn2005/tn2138.html#TNTAG11 On May 28, 2010, at 9:43 AM, Bill Appleton wrote: > Hi Chaitanya, > > that code always returns a size of 100, 100 for every movie I try. really. > > and then the poster or fram

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
Hi Chaitanya, that code always returns a size of 100, 100 for every movie I try. really. and then the poster or frame is really pixelated because it is coming from such a small source. i am surely missing something here! thanks, bill On Fri, May 28, 2010 at 1:17 AM, Chaitanya Pandit wrot

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Ricky Sharp
On May 28, 2010, at 11:20 AM, Bill Appleton wrote: > on printing, the problem is that i have to port an enterprise application > that expects to be able to call a fx for the page layout and the page setup > dialog, a fx to begin/end a page, and a fx to begin/end printing. > > so Cocoa has this a

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
hi all, wow, i am getting a lot of help solving these last issues! thanks all. on printing, the problem is that i have to port an enterprise application that expects to be able to call a fx for the page layout and the page setup dialog, a fx to begin/end a page, and a fx to begin/end printing. s

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Kevin Wojniak
On May 27, 2010, at 12:43 PM, Bill Appleton wrote: > *4)** **I **can't call the printing code* > > I know, the printing code calls me. But other platforms don't work like > this. I eventually used Core Printing and the Cocoa dialogs by sub-classing > and faking out NSPrintPanel. Is there a bette

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Charles Srstka
On May 27, 2010, at 2:43 PM, Bill Appleton wrote: > *5)** **I **can't create a simple list* > > I did it the only way I could -- with a table that has one column, etc. Man > that was painful for a simple list. Is there a better way? Have a look at NSArrayController. It makes table views a piece

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Tony Romano
To see if a file is hidden, I use on the URL(NSURL Class) for the file, resourceValuesForKeys and pass in the array of properties you are looking for. In the case of a hidden file, use NSURLIsHiddenKey. You should be able to make a file hidden as well by using the set counter part. Check out

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Chaitanya Pandit
> > *3)** **I **can't get t**he right dimensions for a QuickTime movie or poster > * > NSSize movieSize = [[movieObject currentFrameImage] size]; > I used to call GetMovieBox, so I tried using [QTMovie posterImage] but the > NSImage reported a width and height of 100, and then my movie poster

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Alastair Houghton
On 27 May 2010, at 20:43, Bill Appleton wrote: > *1) I can't hide a file, or test if a file is hidden* > > I had to resort to FSGetCatalogInfo -- there is no way to do it through > NSFileManager, etc. Right? chflags(), with UF_HIDDEN? And stat() to read the same? I don't think FSGet/SetCatalog

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Ken Ferry
Hi Bill, Thanks for the postmortem. Would you mind filing bugs for the items you think are too difficult? On Thu, May 27, 2010 at 12:43 PM, Bill Appleton < billapple...@dreamfactory.com> wrote: > hi all, > > > I just ported a huge code base to Cocoa, Core Graphics, Core Audio, and > QuickTime.

six things I wasn't able to do with Cocoa

2010-05-27 Thread Bill Appleton
hi all, I just ported a huge code base to Cocoa, Core Graphics, Core Audio, and QuickTime. Basically I had a good experience, but there were some things i noticed that i couldn't do easily in Cocoa or any other 64 bit OSX API. So just in case anyone knows a way to do the things listed below plea