I have 3 questions. I am making a C++ executable to launch a Perl program I made. I will compile it for Winows, Mac OSX and Linux. It's pretty much just: system("perl progam.pl");
When compiled with Mac OSX, the program starts in ~. How would I get it to start in the dir it was launched from, or is it just a problem with the compiler?
...
I want to use the MallocDebug app to find some memory leaks in my app. I'm running Mac OS X 10.6.2. Whenever I try and following the instructions listed in this guide, I get the following error:
dyld: could not load inserted library: /usr/lib/libMallocDebug.A.dylib
Trace/BPT trap
I have verified that the .dylib file exists, and I get...
I'm currently looking into unifying the model of my application. At the moment I'm using a different model on the mac/iphone. Missing classes (NSAttributedString) and missing technologies (Bindings) made me go with this decision.
With the first restriction gone in SDK 3.2 and my plan to also create an optimized iPad version I'm reconsid...
We've got an application that displays PDF files in an IFrame at specific Named Destinations. This works well on Windows systems but not Mac. In Safari, with Acrobat, the Named Destination is ignored and the document is displayed at the start.
Does anyone have any suggestions on how we might accomplish the task of displaying this info...
I'm writing a preference pane to control a script I created, and I want to show a sheet on first launch so the user can tell the pane where they installed the script. The sheet appears fine, the problem is that it appears right after you click the button for my pane. This causes System Preferences to Segmentation Fault immediately.
I'm ...
When my app starts, it loops through adding values of random numbers with keys of co-ordinates on a grid to a dictionary. Here is a bit of the code:
[grid setObject:v forKey:k];
K is a string in form "xy" where x and y are single digit integers and V is an NSNumber. Both of these are logged to the console before adding so I know these...
Hi!
I was looking into Apple Mail.App plugin development and I found nothing in regards to a public api for mail.app, except that there were many websites that said there is no such thing?!
Is that correct? I honestly can't believe it?!
Cheers,
alex25
...
(Intel Mac OS 10.4.11, NetBeans IDE 6.8, SoyLatte 1.0.3)
Although I am currently taking a college course in Java and my code is based on a couple of questions from my Java textbook, I would like to make it perfectly clear that this is NOT homework. This is self-assigned for studying purposes and my professor will probably never see thi...
I would like to implement Mac OS X native printing in my Java desktop application.
That is, this print dialog when the user chooses to print:
which then expands to a dialog such as this:
As I understand it, native Mac OS X applications can customise the 2nd dialog by adding an option in the lower drop-down ("TextEdit" in the screensho...
I've seen some apps are using alternating rows background in their predicate editors, but I can't figure out how they do it.
...
Hi,
This is driving me nuts. Its a tough one to explain but Ill have a go.
I have one input text field on the front page of my site. I have coded a keydown event observer which checks the keyCode and if its ENTER (or equiv), itll check the input value (email). If the email is valid and unique in the DB itll submit the form. Basic stuff...
I have a few static library projects which are used in a Mac application, I'm working on porting these libs to the iPhone and I would like to use the project to build both the Mac and iPhone versions.
For that purpose I setup an additional target for the iPhone. This looks like it should work but I see that if I try, for example, to add...
I've written a launchd .plist which should attach a debugger to the WindowServer when it launches. The main part of the script looks like
screen -D -m -S "WindowServer Debugger" \
gdb \
-x $GDBSCRIPT \
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/WindowServer ...
I use Mac OS X 10.5 (iTerm on screen).
After several hours when Mac went to sleep mode,
Mac seems to shutup itself. Then ssh connection came down.
So my question is, How is it possible to connect to
outer server all the while when Mac is in sleep mode?
...
Hi,
I wonder if it is possible in applescript to create a script for which we give as input the application name and a number N, so this app gets opened in the Space's space number N.
I would like with this to create a meta-applescript, so when the computer boots and after login, on each space I get different apps, and important, I ca...
The module pyfsevents allows Python programs to utilize the Mac OS X FSEvents framework. One can register a path and a callback function, then call the listen() function, which blocks until a file system event happens in the registered path.
pyfsevents.registerpath("/example", callback)
pyfsevents.listen()
I would like to use ...
Hi,
When running some commands in the terminal, I get the following error message
dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib
Referenced from: /opt/local//lib/libTIFF.dylib
Reason: no suitable image found. Did find:
/opt/local//lib/libjpeg.62.dylib: can't map
/opt/local/lib/libjpeg.62.dylib: can't map
Trace/B...
I really need to emulate the behavior of NSImage's drawInRect:fromRect:operation:fraction using UIImage and I'm wondering what's the best approach or (better), if somebody already did this and willing to share the code.
I tried doing this using CGImageCreateWithImageInRect (see code at the end) but I'm not getting the expected results. ...
I am having a crash in my CALayer subclass when I remove myself as an observer in -(void)dealloc:
- (void)dealloc {
[[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:@"showColorLabels"];
[colorLabel release];
[_color release];
[super dealloc];
}
An exception is thrown. It says that self has not been added as an...
How do i launched Terminal from air 2 passing arguments and command as well?
...