Re: iPhone: NSFileManager/NSDirectoryEnumerator Crash?

2011-03-10 Thread Quincey Morris
On Mar 9, 2011, at 16:33, Jeffrey Walton wrote: > The > code executes properly on the first invocation, but crashes on the > second invocation. The cause of the crash is walker = [fileManager > enumeratorAtPath:directory]. You should post the error message and the backtrace at the time of the cra

Soap message with attachment

2011-03-10 Thread rong sun
hi everyone, I am developing a program for SOAP message which can receive and send with attachment, txt file currently. I look up this in the framework library but not find clue. Can anyone pls give me some guide on this? Or is there any library can be used to support this? Thanks _

iPhone: NSFileManager/NSDirectoryEnumerator Crash?

2011-03-10 Thread Jeffrey Walton
Hi All, I've got a method that refreshes a list of files in a directory. The code executes properly on the first invocation, but crashes on the second invocation. The cause of the crash is walker = [fileManager enumeratorAtPath:directory]. Any ideas on the cause? I experience the crash with both

NSApplicationPresentation not honored when asking for admin rights ??

2011-03-10 Thread Jérome Foucher
Hello there ! I have a kiosk application, that disables the Apple menu, Force-Quit, and so on, using NSApplicationPresentation Inside this Kiosk app, I'd like to have some preferences, only accessible to an admin user. Thus I ask for admin rights using SFAuthorization. But when the dialog that a

Re: Question about user interface.

2011-03-10 Thread Quincey Morris
On Mar 10, 2011, at 16:29, Carlos Eduardo Mello wrote: > - Then I thought of a disclosure button to the side of each text field, to > emphasize the idea that the graphical input mode would be an extra, more > complex way of inserting data; but that still doesn't feel right. I think this is star

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread John Joyce
On Mar 11, 2011, at 6:46 AM, Paul M wrote: > > On 11/03/2011, at 8:00 AM, Kyle Sluder wrote: > >> On Thu, Mar 10, 2011 at 10:47 AM, Leonardo wrote: >>> I forgot: if I save the TIF from Photoshop marking the check-box "Save >>> Transparency", on my App I can quite read the alpha channel, and th

Question about user interface.

2011-03-10 Thread Carlos Eduardo Mello
Hi, I went over the OSX HIG but couldn't come up with a good solution for my input needs, so decided to ask the many experienced developers in here... In my app, the document window diplays a large canvas-type view in which various graphical objects are manipulated by the user. Each one

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Paul M
On 11/03/2011, at 8:00 AM, Kyle Sluder wrote: On Thu, Mar 10, 2011 at 10:47 AM, Leonardo wrote: I forgot: if I save the TIF from Photoshop marking the check-box "Save Transparency", on my App I can quite read the alpha channel, and the RGB values are not pre-multiplied. That's fine. Anyway,

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Quincey Morris
On Mar 10, 2011, at 12:47, Seth Willits wrote: > On Mar 10, 2011, at 7:18 AM, Leonardo wrote: > >> I read the imageRep with imageRepWithContentsOfFile and >> get the RGBA values with "colorAtX: y:" > > Have you not yet discovered how excruciatingly slow that is? Not to mention that recovering R

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Seth Willits
On Mar 10, 2011, at 7:18 AM, Leonardo wrote: > I read the imageRep with imageRepWithContentsOfFile and > get the RGBA values with "colorAtX: y:" Have you not yet discovered how excruciatingly slow that is? -- Seth Willits ___ Cocoa-dev mailing lis

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Quincey Morris
On Mar 10, 2011, at 10:25, Leonardo wrote: > representations count 1 > colorSpaceA sRGB IEC61966-2.1 colorspace > isPlanar 0 > numberOfPlanes 1 > NSAlphaNonpremultipliedBitmapFormat 0 > hasAlpha 0 > bitsPPixel 24 > bytesPerPixel 3 Yes, but what is samplesPerPixel? 3 or 4? > The pixel I have set

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Kyle Sluder
On Thu, Mar 10, 2011 at 10:47 AM, Leonardo wrote: > I forgot: if I save the TIF from Photoshop marking the check-box "Save > Transparency", on my App I can quite read the alpha channel, and the RGB > values are not pre-multiplied. That's fine. > Anyway, without the "Save Transparency", on my App I

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread glenn andreas
On Mar 10, 2011, at 12:47 PM, Leonardo wrote: > I forgot: if I save the TIF from Photoshop marking the check-box "Save > Transparency", on my App I can quite read the alpha channel, and the RGB > values are not pre-multiplied. That's fine. > Anyway, without the "Save Transparency", on my App I ge

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Leonardo
I forgot: if I save the TIF from Photoshop marking the check-box "Save Transparency", on my App I can quite read the alpha channel, and the RGB values are not pre-multiplied. That's fine. Anyway, without the "Save Transparency", on my App I get the RGB values pre-multiplied and the alpha values are

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Leonardo
I have checked with imageRepsWithContentsOfFile which returns an array with one object only. So, there is one only representation. These are some values I get from the representation representations count 1 colorSpaceA sRGB IEC61966-2.1 colorspace isPlanar 0 numberOfPlanes 1 NSAlphaNonpremultiplie

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Quincey Morris
On Mar 10, 2011, at 09:25, Leonardo wrote: > if I re-open the same TIF file with Photoshop, I can quite see the > half-a-transparent pixels. So, it seems that the alpha information has been > properly saved within the TIF file. I would like to know how to manage a > file like this and retrieve the

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Chris Ridd
On 10 Mar 2011, at 17:25, Leonardo wrote: > Hi Quincey, > if I re-open the same TIF file with Photoshop, I can quite see the > half-a-transparent pixels. So, it seems that the alpha information has been > properly saved within the TIF file. I would like to know how to manage a > file like this an

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Leonardo
Hi Quincey, if I re-open the same TIF file with Photoshop, I can quite see the half-a-transparent pixels. So, it seems that the alpha information has been properly saved within the TIF file. I would like to know how to manage a file like this and retrieve the transparency (alpha) of those pixels.

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Quincey Morris
On Mar 10, 2011, at 07:18, Leonardo wrote: > But if I save the same image with Photoshop as TIF, I get an "alpha > premultiplied" bitmap format and a bitsPerPixel = 24. But worst of all, all > the alpha values are 1.0, while some of them is for sure 0.5. So I can't > even calculate the original no

Re: Testing apps on Mac OS X 10.5

2011-03-10 Thread Steve Christensen
On Mar 10, 2011, at 7:43 AM, Benedikt Iltisberger wrote: > I would like to know how you all do your testing on older versions of Mac OS > X. Do you run additional systems with older versions of Mac OS X or do you use > virtual machines? I'd test on the OS versions we supported, usually the lates

Testing apps on Mac OS X 10.5

2011-03-10 Thread Benedikt Iltisberger
Hello everybody, I would like to know how you all do your testing on older versions of Mac OS X. Do you run additional systems with older versions of Mac OS X or do you use virtual machines? What is the easiest way to check the compatibility of your app? Is it necessary to check the compatibilit

Reading RGBA pixel values from image on disk

2011-03-10 Thread Leonardo
Hi, I have to read all the RGBA values of every pixel of an image on the disk, as tif, png, jpgŠ I read the imageRep with imageRepWithContentsOfFile and get the RGBA values with "colorAtX: y:" It works quite well with png images with "non alpha premultiplied" bitmap format. In this case I get a bit

[ANN] AppKiDo 0.986sp4, Xcode 4, GitHub

2011-03-10 Thread Andy Lee
If you're having trouble using AppKiDo or AppKiDo-for-iPhone after installing Xcode 4, try this build: These are just direct download links for now. I'll updat

ANN: Cocoa task based scripting using KosmicTask 1.1 Preview 1

2011-03-10 Thread jonat...@mugginsoft.com
Mugginsoft LLP is pleased to announce the availability of KosmicTask 1.1 Preview 1. KosmicTask 1.1 is a secure Integrated Scripting Environment for OS X. KosmicTask supports a wide range of scripting languages including the following Cocoa bridges: AppleScriptObjC F-Script (embedded) JSCocoa

Re: NSTableView: which delegate after a drag operation?

2011-03-10 Thread Ulf Dunkel
Hi Scott and Corbin. Here are my two questions: 1) Which delegate can I use to inform table view B to update and reload its data when I have dragged an item inside table view A? 2) How can I prevent drag operations from table view A to table view B (and vice versa)? List members shall only b