I've written an application using Qt on OS X. The installed SDK automatically installed as a framework which I didn't want. So I cloned their newest version from the Qt git repository and built it from source as static libraries. I would like it to compile using those static libraries instead of the framework but in preferences in settin...
Greetings all,
I hope you all can shed some light on how NSView autoresizes it's views. I've set everything up in IB and my subviews resize nicely (when I resize my window around with a mouse). However, if I do [myMainView setFrame:] with my new frame rect, nothing happens. All of my sub-views are still the original size (even though t...
I have an LSUIElement application that displays a menubar status item. The application can display a dialog window that contains a text field.
If the user right-clicks/control-clicks the text field, a menu appears that allows cut, copy, paste, etc. However, the standard Command-X, Command-C, and Command-V keyboard shortcuts do not wor...
[DISCLAIMER: My development machine is running OS X Tiger, so my question and experiences are specific to that. But I would not mind hearing feedback on Webkit for Windows.]
I've been a longtime Firebug user, but I've grown tired of it's twitchiness. I'm talking specifically about when it will not stop on breakpoints, lose the current...
I'm using the Cocoa Accessibility API to try and modify the value of a text field (AXTextField) in another application, but I've run into a problem: my code correctly identifies and modifies the contents of the text field in question, and the text of the field visibly changes, but the changes aren't registered by the program I'm trying t...
Hi,
How can I configure Mac Terminal to have color ls output?
I am using MacOS 10.5
...
I'm new to Mac and Objective-C, so I may be barking up the wrong tree here and quite possibly there are better ways of doing this.
I have tried the code below and it doesn't seem right. It seems I don't get the correct length in the call to FSCreateDirectoryUnicode. What is the simplest way to accomplish this?
NSString *theString = @"M...
I've seen several questions posted here about recommendations for UML diagramming tools as an alternative to Visio. What I seem to be missing, though, is a good database diagramming tool for OS X. I have done all of my development work in the .NET world for the last few years, and for better or worse Visio has been my go-to tool for data...
Hi,
I'm trying to extend NSImageView so I can delegate the drag/drop responsibility to the controller. It all works fine with the one problem that the compiler is now displaying warnings about sending messages to objects with type id. To solve this I assumed I would simply have to suffix the ivar's type with the name of the protocol. Ho...
Usually I'd use Wireshark, but is there a really super quick way to determine what URL an app is pulling data from? I need to whitelist the host so that it works through a proxy server, as the app doesn't support proxies.
...
I have a file system path in a NSString, but I need an FSRef for the system call I will be making. What is the best way to create the FSRef?
...
Hi,
Really simple little function, but does anyone know how to sleep OS X from Java?
Cheers
...
Does this control have a name? Or is it just a bunch of simple controls merged together? If so, what controls are they?
http://img8.imageshack.us/img8/3002/picture2xrb.png
...
What it says on the tin: I'd like to use the @property/@synthesize syntax to define a property on my Objective-C 2.0 class, but I want to place restrictions on the range of values allowed in the property. For example:
@interface MyClass : NSObject {
int myValue;
}
@property (nonatomic) int myValue;
Implementation:
@implementat...
In a OS X game calling this was recommended as the way to get keyboard and mouse events.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
for(;;)
{
NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES];
if(!event) break;
processevent(event);
...
}
[...
I am trying to use the Image Capture API to grab pictures from a camera. The header file mentions a kRotateImage flag and a rotationAngle parameter for the ICADownloadFile function. I cannot get this to work however. The API seems just to ignore my requests. Anyone know if this is a known problem or if I am doing something wrong?
Here i...
Hi,
I want to change the default icon of a dmg, I'ld like to do like skype or dropbox which use the default image volume icon, but I don't manage to find it with the finder. Do you have any idea where I could find it?
Thanks for your answer,
Boris
...
Hi,
I've been trying to figure out how to run a bash command in a new Max OS X Terminal.app window. As, an example, here's how I would run my command in a new bash process:
bash -c "my command here"
But this reuses the existing terminal window instead of creating a new one. I want something like:
Terminal.app -c "my command here"
Bu...
I'm trying to build a framework for MacOS in Xcode 3. It looks like it's building everything except the Headers directory according to the layout listed in the Apple documentation. I can't find anything that tells me what settings to use to get the build process to copy the headers into Headers directory in the framework, or alternately ...
I've got MAMP running (XAMP for OSX), and I'm trying to setup subversion.
When I go to the freshly created repository in my browser, I get:
<D:error>
<C:error/>
<m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
The repository is setup in ~/server/svn. My html/php files are also ...