This is probably a very easy question to answer, but for the life of me I can't seem to get this to work.
I'm developing for Mac OS X with Objective-C, and I create a custom class (AppController.h and .m). I hand-wrote two IBOutlets (NSTextField, NSImageView), made sure to do the "@property" line in the .h and the "@synthesize" in the ....
Hello All,
I need a event handler when ever shutdown message is send to system.
Can anyone help?
When ever we try to shutdown a system, and if any dialog box is open shutdown process terminates. I don't want this to happen in my application. i.e if any dialog box is open from my application and I try to shutdown my system then it shoul...
Hi,
is it possible to profile C++ apps with Xcode so one gets;
memory leaks like with valgrind
possible errors before running the program
Thanks, I am very new to mac and xcode
Where can one find a good tutorial for this?
...
Hi,
I am writing a document based application on OS X. One feature oft this application will be an "import" function.
This function will read data files from the disk which contain data as raw BLOBs and can be parsed into one oder more documents. For this function I will have to create documents programatically. The main problem is, th...
As part of an i18n project, I need to extract strings from a NIB file programmatically. This can be done quite easily with ibtool, of course. But this is a cross-platform product, of which the NIB is only part. It would be nice if we didn't have to lock string extraction to a particular machine, or have to kludge together catalog-merg...
Hi there,
I've created a widget with Flash (ya ya, I know not the smartest idea). My widget has a scroll bar that I need to assign a control region to.
I've created a div, absolute positioned it and layered it overtop the Flash object by setting the z-index. I then specified the correct CSS for the region but nothing seems to happen.
...
When I recompiled an old Obj-C project (a Cocoa app), the linker couldn't find some common library modules, including sin() and sysctl(). This project had been working in the previous version of Xcode. I am now using Xcode 3.1.2 in OSX 10.5. The error message was:
Line Location Tool:0: collect2: ld returned 1 exit status
Line Locat...
I'm currently wring a Cocoa application which needs to execute some (console) applications which are optimized for 32 and 64 bit. Because of this I would like to detect what CPU architecture the application is running on so I can start the correct console application.
So in short: how do I detect if the application is running on a 64 bi...
If someone knew little about databases and wanted to learn about them from scratch, which database would you recommend learning with and why?
MySQL seems ubiquitous, but are there others that are more modern that have learned lessons from the past, or others that are simply nicer or more logical to work with?
Universal compatibility/li...
I'm playing around with Rubygame. I installed it with the Mac Pack, and now I have the rsdl executable. rsdl game.rb works fine, but when I chmod +x the rb file, add the shebang to rsdl (tried direct path and /usr/bin/env rsdl) and try to execute it (./game.rb), it starts to flicker between the Terminal and rsdl which is trying to open, ...
I have vanilla Mac OS X Leopard which comes with 1.8.6.
I am new to RoR so will be following tutorials on the net. Am I likely to find problems following them when using later versions of Ruby?
I am currently looking at this one which mentions 1.8.6 and 1.8.7 - http://www.railstutorial.org/book
...
Dear All,
Setup: Running Mac OSX Snow Leopard, X Code 3.2.1, Mysql 5.1.42 and Mysql C-Connector 6.0.2, all 64-bit.
I am having real difficulty configuring X-Code to run Mysql scripts. XCode is running fine (i.e. can Build and Run), MySQL server is running and I am confident on the installation of the programs listed under my Setup at t...
Is there an osx mysql gui, which can run a script containing multiple statements, and will display the plain text output from the database, rather than in an excel like grid?
I want to be able to see error messages and multiple sets of data all in the same window as I can when using the windows sql server client.
Sequel pro seems to ge...
I am trying to draw opengl into 2d space, and am doing the following, however it wont compile:
int vPort[4];
glGetIntegerv(GL_VIEWPORT, vPort);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrthof(0, vPort[2], 0, vPort[3], -1, 1);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoad...
I'm trying to set up an automated svn commit to run semi-hourly under mac os 10.6, but the crontabs i'm adding to cron don't seem to be valid and/or don't seem to even be looked at by cron. For testing i made a simple crontab and script:
Crontab:
*/2 * * * * /Users/username/crontest
where username is replaced with my system username...
Hi people. I need to add custom element to context menu for all running application. It is posible?
Something like:
I select text and in context menu i have not only application items, but additional items of my application and this items must will be connected to my app. It must work in all applications.
...
I've created an NSScrollView which itself contains a NSClippedView as content view (this is all default, created by IB). Inside the contents view there is the (default) document view.
This NSScrollView has horizontal scroller disabled and vertical enabled and, most importantly auto hide scrollers enabled.
When I add new views (via code...
I have now tried for hours getting xDebug (2.0.5 compiled from source) to work on my MacBook OS X with NetBeans 6.8. I have installed MAMP and am running a small PHP (5.2) test program with it, no problem. But when I try to debug I get this text in Netbeans: "Waiting for connection (netbeans-xdebug)" and nothing more happens. Netbeans is...
Hello All,
I have a client - server application, where I want to add a exception to firewall so that my applications can communicate properly.
I want to add add an exception to the firewall (without changing the setup for the other firewalls options).
I am using Carbon, Qt, C++. However, I feel this has more to do with some install tim...
I'd like to include some debug information in an application, but hide certain symbols from appearing. Is there any way to do this with GCC 4.0 (or 4.2)? This is on OSX.
...