I am trying to align position of tabs in QTabBar to the left.
Does any one has any idea?
I was able to do this when I was using QTabWidget using style-sheet. Now, I have restriction that I cannot use QTabWidget. So have to do this in tab-bar.
Any help is highly appreciated.
...
Question for indie Mac developers out there:
How do I implement a 30-day time trial in a non-evil fashion? Putting a counter in the prefs is not an option, since wiping prefs once a month is not a problem for an average user. Putting the counter in a hidden file somewhere sounds a bit dodgy - as a user I hate when apps sprinkle my hard...
This is for some reason really hard to find and solve. Cannot find any documentation on it.
I've got a non-document based application which I would like to open all specific file types, but I do not want to use NSDocuments but let my code handle the opening of file and processing of it. I've added the CFBundleTypeExtensions and all, sett...
Hi,
I recently started creating applications for mobile devices and have successfully completed an application for the iPhone. I am now turning my attention to the Blackberry but haven't been able to find a convincing article or website that states that it can be done or a tutorial on how to do so. Can Blackberry apps be developed on Mac...
I am taking a programming class and we are required to use the gcc 4.1.2 compiler to compile our c++ projects. I will be creating my projects in xcode and can't find how to set that compiler. I went to the get info window on the project and hit the drop down under Compiler Version, however I do not have 4.1.2 on the list. It seems that t...
Hi,
I'm having a bunch of problems getting this library to work on my OSX installation.
In particular, I'd like to use it with a Java 1.6 VM but after I compile it up I get the following:
java -cp "luajava-1.1.jar" org.keplerproject.luajava.Console
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/dharabor/src/luajava-...
I've implemented an save on applicationWillTerminate and load on applicationWillFinishLoading.
There is a complete object tree, all implement the NSCoding protocol and I've check the types I enter.
One of the classes also stores an NSMutableData to the NSKeyedArchive, which I suspect might break unarchiving occasionally. Weirdly enough,...
Is there any? Right now i am using netbeans for this! Just to write some notes.
...
How can we bounce the dock icon of our application?
...
The below example should work with Unicode strings but it doesn't.
CFStringRef aString = CFSTR("one"); // in real life this is an Unicode string
CFStringRef formatString = CFSTR("This is %s example"); // also tried %S but without success
CFStringRef resultString = CFStringCreateWithFormat(NULL, NULL, formatString, aString);
// Here I...
In Snow Leopard, I want to trigger a script/code whenever a user duplicates a directory in Finder. How can I do that?
I've been hunting around the docs, but I'm a little too new this type of work to recognize the right approach.
Motivation: If a directory is under version control, say with git or hg or svn, and the user duplicates tha...
I need to intercept all HTTP requests on a Mac OS X client and record the request url in it. I know on Windows machine, I can implement a Winsock LSP and have it intercept all winsock calls. Is there a equivalent on Mac OS X? Thanks.
If you don't have the direct answer, I'll appreciate if you can point me to where these Max system progr...
I'm trying to build a project that uses OCUnit to run tests but get the following errors when linking:
ld: warning: in /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks//SenTestingKit.framework/SenTestingKit, file is not of required architecture
Undefined symbols:
"_STComposeString", referenced from:
-[ReaderTest testEmptyFile] ...
How do I fade my Core Animation application to a fullscreen black screen first like Front Row?
...
I've been programming using OpenCV on the iSight feed and after building and running from Xcode 10 or so times somewhat quickly the MacBook Pro starts to not recognize the iSight (as in completely, Photo Booth doesn't work, nor video chat within iChat, and it's not in System Profiler). The only way to recover is to do an SMC reset, norma...
This doesn't do anything:
NSImage* testImage = [[NSImage alloc] initWithSize:NSMakeSize(2.0,2.0)];
[testImage lockFocus];
[[NSImage imageNamed:@"testImage"] drawAtPoint:NSMakePoint(1.0,1.0) fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
[testImage unlockFocus];
[levelView setImage:testImage];
...but this does:
[levelV...
Does OS X (Snow Leopard in particular) have an equivalent to (some versions of) Linux's /dev/shm , ie something where you can write to and read from a file without necessarily touching the hard drive?
...
Hello everyone!
I wonder if it is possible to figure out what keys user was pressing while his Mac OS was starting up?
Any way will do. As far as I understand it there is no easy way to simply hook an app/script to start working and capturing keystrokes simultaneously along with the OS. But maybe there is a way to some kind of reverse ...
I'm trying to set up 'cake bake' on OS X. I'm using MAMP and every time I try to 'bake', I get this:
-bash: cake: command not found
I have the Apress Beginning CakePHP book, but the suggestions in that book aren't working for me. In the Apress, book, he suggests the following solution in .profile
alias cake="php ~/Sites/blog/cake/con...
I'm just getting started with Cocoa Bindings and while I've read through much of the documentation, I'm still struggling to implement a basic feature, making me question wether I'm doing it wrong or perhaps it's just not possible via IB.
Goal: Have a menu item called "Toggle visibility" toggle the state of a Boolean property in my appl...