Re: Non-modal NSOpenPanel

2004-08-24 Thread Sherm Pendley
On Aug 22, 2004, at 11:16 AM, Rick Frankel wrote: I am trying to open a non-modal NSOpenPanel. As a simple test, I modified the CamelBones FileViewer: $openPanel- beginForDirectory_file_types_modelessDelegate_didEndSelector_contextIn fo( $self-{'_openPath'}, '', $fileTypes, $self,

Re: PerlObjects and OutlineView problems

2004-08-24 Thread Sherm Pendley
On Aug 23, 2004, at 5:15 PM, Rick Frankel wrote: I have created an outline field w/ perl objects as the items. Everything works ok until I dereference the items in either a doubleClick (as in the OutlineView example) or via itemAtRow, at which point the item is corrupted (the objectForItem value

Installing and Running CamelBones apps

2004-08-24 Thread Alan Olsen
OK. I have my app built and working. I have the runtime for CamelBones ready to install on the client computer. What do I need to do to convert this into a bundle and/or separately runnable app recognized as such by OS X? I can run it through XCode, but that is a bit much for most users.

Re: Installing and Running CamelBones apps

2004-08-24 Thread Sherm Pendley
On Aug 24, 2004, at 5:03 PM, Alan Olsen wrote: I have the runtime for CamelBones ready to install on the client computer. Make sure you have the .pkg installer for the runtime. Different versions of CamelBones.framework are needed for different versions of Mac OS X. The installer detects the OS

CamelBones runtime

2004-08-24 Thread Alan Olsen
I am getting an error running a Camelbones app on another machine. I installed the runtime and copied over the .app file/directory. I get the following errors: ZeroLink: could not load .o file: /Users/alan/Documents/XCode Projects/KingCNCProgrammer.build/KingCNCProgrammer.build/Objects-

Re: CamelBones apps

2004-08-24 Thread Sherm Pendley
On Aug 24, 2004, at 5:14 PM, Alan Olsen wrote: When CamelBones builds an app, it gets put in ~/Documents/XCode Projects/. That has nothing to do with CamelBones - it's an Xcode setting. sherm--

Re: CamelBones runtime

2004-08-24 Thread Sherm Pendley
On Aug 24, 2004, at 5:41 PM, Alan Olsen wrote: I get the following errors: ZeroLink: could not load .o file: /Users/alan/Documents/XCode Projects/KingCNCProgrammer.build/KingCNCProgrammer.build/Objects- normal/ppc/main.ob ZeroLink: unknown symbol '_main' If it's any consolation, this is quite

Re: Installing and Running CamelBones apps

2004-08-24 Thread Alan Olsen
On Aug 24, 2004, at 2:26 PM, Sherm Pendley wrote: On Aug 24, 2004, at 5:03 PM, Alan Olsen wrote: I have the runtime for CamelBones ready to install on the client computer. Make sure you have the .pkg installer for the runtime. Different versions of CamelBones.framework are needed for different

Re: Download images/movies

2004-08-24 Thread Mark Wheeler
Hi all, Here is my first attempt to write this script. I will be adding the protection/whitelisting/etc. after I get the basic this running. Here is what I have so far, and here is what happens. On a PC, the dialog box comes up and saves the file, but it is 0K -- nothing in it. On a Mac,

Re: Download images/movies

2004-08-24 Thread Andrew Mace
Hey Mark - A few things. - You want to open the file for reading, not to write. - You should undef $/ to slurp the file if you're using to read. - You should stat the file before opening it to add the Content-Length header, if you want. - For larger files, it would make more sense to use

Re: Download images/movies

2004-08-24 Thread Andy Turner
I would also recommend using PATH_INFO instead of a query string. This will more reliably set the filename then the content disposition will. The HTML would be: html head titleUntitled Page/title /head body a href=javascript:window.location='cgi-bin/download.cgi/Upload-Background.gif'picture

Re: Download images/movies

2004-08-24 Thread Chris Devers
On Tue, 24 Aug 2004, Andy Turner wrote: I would agree that slurping the entire file is a bad idea. This whole project is, in hindsight, a bad idea. This can be done more safely easily in the Apache config. Assume that the image tree lives in /Library/WebServer/Documents/photos, and is ordinarily

Re: Download images/movies

2004-08-24 Thread Mark Wheeler
Hi Andy (another andy), I tried your changes, but not go. On a PC, a 0k file is saved. On a Mac, the browser (Safari 1.2.2) gives me a blank screen with nothing d/l or a save dialog box - nothing. Any ideas? Thanks, Mark On Aug 24, 2004, at 4:10 PM, Andy Turner wrote: I would also recommend

Re: Download images/movies

2004-08-24 Thread Mark Wheeler
Hi Chris, I'm not at home (where the server is) so I'll give that a try, too. The drawback on this method would be that I would only be able to use it on a server that I had access to the Apache config file. This works well at home, but not so well with a paid outside hosting service. But I'm

Re: Download images/movies

2004-08-24 Thread Andrew Mace
$path is a system path, right? As in, like, not relative to the webserver? Just making sure... Also, I messed up and used $length in one place and $size in another, though that doesn't explain your troubles. I mean, you could do a lot of things to debug. A quick thing you could do would