open package installer in bundle resources directory not working

2008-12-12 Thread Denis Bohm
I'm trying to distribute an installer within my own application bundle in the resources directory and run it from my application. When I try to run it from the debugger I get the error launch path not accessible. However, if I then use the terminal to run the command by hand using the

Re: Java and Objective-C

2008-06-08 Thread Denis Bohm
On Jun 7, 2008, at 5:16 PM, Bill Bumgarner wrote: On Jun 7, 2008, at 4:16 PM, Peter Duniho wrote: As I pointed out in my other replies, implementing something like NSUndoManager is trivial in C#. It would only be slightly more so in Java, and only because of the above. There's really no

Re: Java and Objective-C

2008-06-08 Thread Denis Bohm
On Jun 8, 2008, at 3:43 AM, Michael Ash wrote: On Sun, Jun 8, 2008 at 1:48 AM, Peter Duniho [EMAIL PROTECTED] wrote: So, when you write true proxying of method invocations, what does that mean, exactly? Distributed Objects is probably the best example in terms of real-world use of a

Re: Java and Objective-C

2008-06-07 Thread Denis Bohm
On Jun 7, 2008, at 12:38 PM, Bill Bumgarner wrote: On Jun 7, 2008, at 12:01 PM, Felipe Monteiro de Carvalho wrote: On Sat, Jun 7, 2008 at 11:38 AM, Jose Raul Capablanca [EMAIL PROTECTED] wrote: With the exception of the id and SEL types, categories, and the fact that you can send messages

Re: Java and Objective-C

2008-06-07 Thread Denis Bohm
On Jun 7, 2008, at 1:49 PM, Bill Bumgarner wrote: Thank you -- this is the kind of side by side, purely code oriented, set of comparisons that I think are both largely missing and generally quite useful. Comments inline. On Jun 7, 2008, at 1:30 PM, Denis Bohm wrote: The Objective-C

Re: Java and Objective-C

2008-06-07 Thread Denis Bohm
On Jun 7, 2008, at 2:01 PM, Bill Bumgarner wrote: On Jun 7, 2008, at 1:49 PM, WT wrote: But here's the flip-side of your question, which clarifies what I had been saying in previous messages: what features of NSUndoManager require Cocoa's native language to be based on C? I'm not

Re: Java and Objective-C

2008-06-07 Thread Denis Bohm
On Jun 7, 2008, at 2:08 PM, Bill Bumgarner wrote: On Jun 7, 2008, at 1:54 PM, Denis Bohm wrote: That is handled by the Java example above (via the Object... args). A method with any number of arguments can be passed to registerUndoWithTarget. So you could do something like

namespaces and prefixes

2008-06-07 Thread Denis Bohm
I understand that Objective-C doesn't have namespaces and that prefixes are used to help avoid naming conflicts. A couple of the obvious ones (like NS) are easy to pick up glancing at some of the API docs. Is there a list anywhere of all the prefixes that Apple has used so I can avoid

Re: Java and Objective-C

2008-06-07 Thread Denis Bohm
in those cases. On Jun 7, 2008, at 2:43 PM, Bill Bumgarner wrote: On Jun 7, 2008, at 2:10 PM, Denis Bohm wrote: I don't think the same level of dynamism could be added to any other language without changing the nature of the language. For Java, adding such degrees of dynamism would change

NSFileHandle fileHandleForUpdatingAtPath never returns

2008-05-29 Thread Denis Bohm
When another application has a device file open and I try to use NSFileHandle fileHandleForUpdatingAtPath to open the same device file, the call just seems to hang and never return. The API documentation doesn't say what should happen in this case. Does anyone know why it isn't

find repaint areas?

2008-05-07 Thread Denis Bohm
I am trying to create a buffered window and get notified whenever areas are repainted so that I can also send those areas over the network to a custom remote bitmap display. I don't want to copy the complete buffered image on each update as that would be much too slow. NSView has

Re: find repaint areas?

2008-05-07 Thread Denis Bohm
am, Denis Bohm wrote: I am trying to create a buffered window and get notified whenever areas are repainted so that I can also send those areas over the network to a custom remote bitmap display. I don't want to copy the complete buffered image on each update as that would be much too slow