I have a class in my application which handles all the controls and all the functions and variables are stored in it. How can I add a function which handles the application startup to it?
So basically I need to handle 'applicationDidFinishLaunching' in my class as well as in the application delegate.
How do I do that?
...
hello.
i tried to read text file in xcode but this
"EXC_BAD_ACCESS message showed up when i tried to build my program
here is my code
and i put inputA.txt file in the same folder with project file
my friend told me that i should put txt file in debug folder is this why i cannot read txt
file in this code? please help me...
macbook user...
Hi guys,
i've a Problem with MySQL C API and Mac OS X 10.6. When i want to compile a SQL Client Program, it aborts with this Error Message
ld: library not found for -lmysqlclient
collect2: ld returned 1 exit status
I compile with this command:
g++ -I /usr/local/mysql/include/ -L /usr/local/mysql/lib/ -lmysqlclient main.cp...
I have a java applet and the only look and feel that works properly is the native mac one. I wanted to make the fonts a bit larger and tried using the standard UIManager methods
UIManager.put("Label.font", new Font("Georgia", Font.PLAIN, 18));
This produces no change. It does not throw an exception, of course.
Does anyone know if the...
I'm using OAConsumer in my xAuth twitterEngine and i'm adding Twitpic OAuth Echo to it. But it won't POST the NSData. here is some of my code:
//other file
NSArray *reps = [[imageToUpload image] representations];
NSData *imageData = [NSBitmapImageRep representationOfImageRepsInArray:reps
usingType:NSJP...
How can I create a virtual HID device in code? I'm trying to avoid writing a kernel extension to accomplish this, but it seems to be the only way. I need to be able to create virtual HID devices of all types, and have an app running in the background feed them events. Is there a way to do this in user-space, or must I venture into kernel...
I'm having no luck whatsoever with debuggers either on Zend Studio or NetBeans. I cannot believe the difficulty I'm having with these IDE's. I've read all the prior questions on netbeans-xdebug problems. According to those answers, my configuration is correct. Nonetheless, when I try to run xdebug, NetBeans hangs. I cancel the connection...
I am new to mac, my question is what else text editors can be used to edit Objective-C code except xcode. And which one is the best for productively editing source code?
...
I have the command language part sorted out, I'm looking for good sample on how to build a custom console in Cocoa. Need features like copy/paste, command stack, ctrl-z processsing etc. Thanks in advance.
...
I'm trying to create an install package. I've got all my components, and I think I understand most of the process. I want to have an install/set-up script that is run as part of the install. I planned to put it either as a post-install action or a post-install script.
The problem is that I need user-input. I can't figure out how to eith...
I have a multithreaded c++ application that runs on Windows, Mac and a few Linux flavours. To make a long story short: Inorder for it to run at maximum efficiency I have to be able to instantiate a single thread per physical processor/core. Creating more threads than there are physical processors/cores degrades the performance of my prog...
Hi Guys,
I need to know the effect of different platforms on the System.Random object (Silverlight). Is the sequence created the same on Mac, PC and across 32 / 64 bit?
Regards
Tris
...
I have installed MacRuby 0.6 and then the hotcocoa gem from Github. However, when I try to create a hotcocoa application with eg.
hotcocoa demoapp
I get the error
-bash: /usr/local/bin/hotcocoa: No such file or directory
Typing 'which hotcocoa' results in
/usr/bin/hotcocoa
Other online documentation seems to suggest that this ...
Hi
I am trying to automate my Chrome extension building process on OSX 10.5.
I am unable to find a similar command for OSX like this for Windows
chrome.exe --pack-extension=c:\myext
--pack-extension-key=c:\myext.pem
Is it even possible on OSX? As there is no mention of it in the documentation.
Please guide me.
Thanks in advanc...
Hi, I am working on application which required me to change the filename case retaining the original filename as it is For Example: need to change abc.txt => (ABC.txt or Abc.txt or abc.TXT or abc.Txt) filename as well as its extension can be change in same way. I tried to use the NSFileManager
- (BOOL)movePath:(NSString *)source toPath...
Hi all
Can I write applications for iPhone in C++ or C#?
Where can I find simulators for iPhone for testing my apps.
How to write them?
...
I am working with a web service right now that requires me to upload video binaries straight to their web form via the iPhone SDK. Simple enough. The part that is getting me though is when the connection is interrupted, they want me to be able to continue the upload from a given byte.
So here is what I have: the original data & the la...
Hi,
In my Carbon application upon display of Preference Panes, I have a link which when clicked opens up Apple Help Viewer.
The problem I am facing is the Help Viewer Window is behind my preference pane window.
I would like to keep the Help Viewer window on top of the Preference Pane.
Is there any way to get the WindowRef of the Hel...
Hello!
In the "mainViewDidLoad" of my NSPreferencePane, I am prompting the user to accept the license and on-user-reject, I would like to close the window. I was hoping that the [NSApplication terminate] would work; and it does! The logic returns from that point in code and we're back at the System Preference Pane window. Just that if t...
I have an application and I will sometimes just change the plist, say to change the version number. Sometimes I'll actually make a change to the code, AND the version number....in the latter case, SOMETIMES the version number of the resulting app will change, in the former it will never change. The only way I've found that surely does it...