Re: NSOperationQueue

2008-09-21 Thread Mike Fischer
our needs a more primitive queue would be more appropriate (although queueing and dequeueing operations should be thread safe). You would have your secondary thread grab the next item from the queue, process it and the loop back to pull the next item from the queue, etc. Meanwhile your

Re: NSOperationQueue

2008-09-19 Thread Mike Fischer
nly from the main thread.") and running multiple AppleScripts targeting the same app in parallel (which would be the reason for using an NSOperationQueue in the first place) will at best not gain you any advantage and at worst crash yourself and/or Excel. [self finishOperation]; }

Re: Objective-C and AppleScript

2008-09-01 Thread Mike Fischer
NSLog(WorkbookActiveScript); execResult = [self ExecAppleScript:WorkbookActiveScript]; if (execResult != nil) { // success wbActive = [execResult booleanValue]; }

Re: Question about respondsToSelector

2008-08-19 Thread Mike Fischer
:displayDuration validTimeFlags:validTimeFlags]; HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses. __

Re: launchd daemon at boot time

2008-07-03 Thread Mike Fischer
't work". But please continue this discussion on the launchd-dev list. HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses

Re: launchd daemon at boot time

2008-07-03 Thread Mike Fischer
loaded into launchctl when it the computer reboots (i.e. cannot be seen in the launchctl list). What am I doing wrong? Who knows? Without knowing any details it's impossible to tell. Also this is not a Cocoa question and is off-topic here. Try the launchd-dev mailing lis

Re: removeFrameUsingName: doesn't?

2008-06-12 Thread Mike Fischer
Am 28.02.2008 um 23:17 schrieb Quincey Morris <[EMAIL PROTECTED]>: On Feb 28, 2008, at 12:25, Mike Fischer wrote: OK, nobody answered so I did a further test: ... Then I relaunched the app, used the IBAction to remove the Auto Save Name and quit the app again. The key was still the

Re: Setting action: with a variable

2008-05-27 Thread Mike Fischer
n defined as follows: - (void) buttonActon:(id)sender What am I doing wrong? You don't seem to understand what selectors are. Maybe (re)read <http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ Articles/chapter_8_section_3.html> ? HTH Mike -- Mike Fischer

Re: creating a resource fork and writing raw bytes to it

2008-05-22 Thread Mike Fischer
hese differences. The only thing the File Manager API is missing is good support for POSIX functionality like symbolic & hard links and unlink(2). Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this li

Re: creating a resource fork and writing raw bytes to it

2008-05-22 Thread Mike Fischer
Am 22.05.2008 um 07:50 schrieb Charles Srstka: On May 22, 2008, at 12:09 AM, Mike Fischer wrote: Anyway I remember reading somewhere that Apple warned about relying on ..namedfork/rsrc always working. I can't find the reference at the moment though. That was WWDC 2006, in whic

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Mike Fischer
Am 22.05.2008 um 06:11 schrieb Charles Srstka: On May 21, 2008, at 11:11 AM, Mike Fischer wrote: There are hacks that rely on special pathnames to access the resource fork of a file. (Something like /path/to/file/..namedfork/ rsrc) But I would not recommend using them as there is no

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Mike Fischer
ecommend using them as there is no guarantee that they will continue to work in the future (or even now in the context of Cocoa file operations). Also they might only work on certain volume formats. HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung

Re: Conditionally modifying NIBs?

2008-05-18 Thread Mike Fischer
Am 18.05.2008 um 11:14 schrieb Uli Kusterer: Am 14.05.2008 um 19:37 schrieb Mike Fischer: Given the recent/ongoing discussion about bypassing Interface Builder I have one question/issue for which IB does not seem to provide any solution. Interface Builder and NIBs are nice and have many

Re: Fullscreen on secondary displays

2008-05-16 Thread Mike Fischer
:withOptions: don't exist pre Leopard. It wouldn't be too hard to work around that though. Otherwise it's a nice tutorial. HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in

Re: Conditionally modifying NIBs?

2008-05-15 Thread Mike Fischer
Am 15.05.2008 um 01:10 schrieb Hamish Allan: On Wed, May 14, 2008 at 11:25 PM, Mike Fischer <[EMAIL PROTECTED]> wrote: (I know this can be hacked, and that while verbose it's only xml. But I'd want my apps building in the next Xcode (sub-)release as well.) Sure, well, yo

Re: Conditionally modifying NIBs?

2008-05-15 Thread Mike Fischer
something like Photoshop using nibs for everything and working on a nib with more than one person. I'd guess one would use nibs for simple things and possibly building blocks and do everything else at run-time where what happens is clear and self documenting. Mike -- Mike Fischer Sof

Re: Conditionally modifying NIBs?

2008-05-14 Thread Mike Fischer
Am 15.05.2008 um 00:07 schrieb Hamish Allan: On Wed, May 14, 2008 at 6:37 PM, Mike Fischer <[EMAIL PROTECTED]> wrote: I remember in the very dim past (when MacApp was still a modern framework ;-) that I had text based resource files (.r) to build the 'View' resources

Re: Conditionally modifying NIBs?

2008-05-14 Thread Mike Fischer
Am 14.05.2008 um 20:11 schrieb David Wilson: On Wed, May 14, 2008 at 1:37 PM, Mike Fischer <[EMAIL PROTECTED]> wrote: Details: Let's say I have a project which includes a nib N1 which builds a target T1. Now I want to add a new target T2 which builds a variant of of T1 that

Conditionally modifying NIBs?

2008-05-14 Thread Mike Fischer
eting similar in our modern Cocoa/ Xcode/IB world? How do others handle this problem? Thanks! Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Web: <http://homepage.mac.com/mike_fischer/index.html> Note: I rea

Re: Create NSStrings from a mapped NSData object - safe?

2008-05-14 Thread Mike Fischer
ved an open file (not the directory entry but the file itsel) then that would be a serious bug and should be reported. Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send

Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Mike Fischer
g sense of the sparse documentation ;-) Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses.

Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-05-01 Thread Mike Fischer
not mention that the callback will be called on completion of the operation. [snip] Any idea why? Wrong assumptions? HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode!

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Mike Fischer
n reading use either and reconsruct the missing one if necessary and possible. HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses. __

Re: Triggering GUI login session from daemon? And reboot.

2008-03-05 Thread Mike Fischer
Am 05.03.2008 um 12:13 schrieb Jean-Daniel Dupas: google: launchd-dev. First result => http://lists.macosforge.org/mailman/listinfo/ launchd-dev Thanks! Stupid me! I didn't think to Google or look in non-Apple places. Mike Le 5 mars 08 à 11:52, Mike Fischer a écrit : Am 04

Re: Triggering GUI login session from daemon? And reboot.

2008-03-05 Thread Mike Fischer
m to exists on: <http://www.lists.apple.com/mailman/listinfo> Any tipps on where to find this list and how to join/view the archives? Thanks! Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode!

Re: removeFrameUsingName: doesn't?

2008-02-28 Thread Mike Fischer
e: does nothing at all AFAICT. The same thing happens (doesn't happen) on Leopard 10.5.2 on Intel. And again switching the two statements around doesn't make any difference. I filed a bug: Mike Am 26.02.2008 um 21:23 schrieb Mike Fischer: Hi! I'm trying to remove the

removeFrameUsingName: doesn't?

2008-02-26 Thread Mike Fischer
Google. So, any idea what I'm doing wrong? Is this a bug in Cocoa, i.e. does this work for anyone else? Thanks! Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Web: <http://homepage.mac.com/mike_fischer/index.html&