Is there any way to use AppleScript (or something else) to query currently running applications for the filename and path of the current file that they have open? I know some applications show the filename in the window title which is script accessible, but this isn't a solution as not all do, and hardly any show the path. I also know ...
I am trying to create a delegate protocol for a custom UIView. Here is my first attempt:
@protocol FunViewDelegate
@optional
- (void) funViewDidInitialize:(FunView *)funView;
@end
@interface FunView : UIView {
@private
}
@property(nonatomic, assign) id<FunViewDelegate> delegate;
@end
This doesn't work because the FunView inter...
I have a linux dev server I watch, and lately its chugging at some points so I'd like to keep a better eye on it. I used to use Gkrellm, but its been a pain to try get Gkrellm to build on my Mac.
Besides servering X remotely (which would not be optimal), I guess i'm looking for alternatives to Gkrellm.
I would like a program that will...
If you put up an NSAlert while your app is in the background your dock icon starts bouncing and keeps on bouncing until you switch back.
I find this annoying.
Does anyone know how disable that for a single app?
...
I want to try my hand at developing for the iPhone but I don't have an Intel-based Mac available to me; likewise, my budget doesn't include provisions for getting one anytime soon. I've tried messing around with winchain and that hasn't gone too well. I'm not interested in jail-breaking my phone and installing other tools for developin...
Since Terminal appeared I've saved as ~/mySrvr.term a modified stock .term file
which opens to execute an ssh to a remote server and to modify the appearance.
I have NOT been able to save "use option key as meta" for emacs-ery; there's no slot for it
in the term file and I'm reluctant to wrestle with a keyboard dictionary file.
Am I miss...
I'm looking to get an über-cheap mac just for iPhone development. What's the oldest OS that works?
Any other hardware tips?
...
I'm trying to unmount a WebDAV volume (mounted with FSMountServerVolumeSync()) using either FSUnmountVolumeSync() or FSEjectVolumeSync(). Thus far I've been unable to get either of them to reliably unmount the volume without blocking for more than 20 seconds. While they're blocking I can see webdavfs_agent complaining in Console.app th...
Hello everyone,
My application is a viewer for a custom format, a zip file with a well defined XML manifest and resources, such as images and movies. I use zlib to open up the zip file in memory and then proceed to display said resources.
One problem I've ran into is that I'm unable to properly display videos, apparently because QTMov...
Is it possible to somehow change the look/feel of NetBeans? I know it uses Swing and that usually apps using Swing for its UI can usually have their UI scheme changed.
The default appearence for OSX is vomitastic and would even settle for just some sort of barebones "default" look. The whole look is just too distracting and unnecessary....
A link that stands out is http://www.devdaily.com/blog/post/jfc-swing/handling-main-mac-menu-in-swing-application/ however the menu bar under Mac OS X displays as the package name as opposed to the application name. I'm using the code in the above link without any luck, so I'm unsure if anything's changed in recent Mac OS versions.
Her...
I'm having trouble with this code:
NSRect itemFrame;
id item;
// code to assign item goes here.
itemFrame.origin.y -= [item respondsToSelector:@selector(selectedHeight)] ? [item selectedHeight] : [self defaultSelectedHeight];
This is the problematic bit:
[item selectedHeight]
The compiler is assuming that the return type is id. I...
Will the individual UML diagram shapes be NSView subclasses or NSBezierPaths? How are the diagrams created and managed?
...
Has anyone used Versions for OSX? I'm mainly wondering if it does everything TortoiseSVN does and if you can use both with the same checkout repo?
Edit: The one issue I found is the diff viewer. The OSX developer FileMerger is just not that great. TortoiseSVN has got this right.
...
Mac OS X stores some files with resource forks. I need to create a file with a resource fork. The trouble is, I need to create this file on the command line. Is anyone aware of how you can create a file with a resource form on the command line in Mac OS X?
...
I got ahead of myself and downloaded and installed the OSX Python 2.6 package from www.python.org/download/ on my OSX 10.5.5 Intel Mac and installed the full package contents. Only after this did I come across http://wiki.python.org/moin/MacPython/Leopard stating that you should do a partial install of the package to avoid interfering wi...
Hello all. I'm a newbie Cocoa developer and I'm developing my first application. I want to read a unique identifier from any window of any application - whether it's Cocoa or Carbon. Cocoa applications make their window IDs available to AppleScript (although I'm sure there's a much better way to do this through a proper Objective C route...
When configuring the bash on OSX via ~/.profile it seems to completely ignore it as soon as ~/.bash_profile exists. If this is correct and expected behavior, should I add my extra configuration stuff to ~/.bash_profile as well or use it instead of ~/.profile?
Thanks in advance.
...
I want to set up an automatic rsync job to backup a bunch of user accounts on my OS X machine to a linux fileserver. I have set up password-free ssh from my account to another machine, and it works great, so I tried using this command:
sudo rsync -avz /Users/jbloggs myserv:/var/Backup/
where myserv is an alias set up in my ~/.ssh/conf...
Sun's Java SE 7 is set to release next year, and we still have yet to see a stable, complete implementation of Java SE 6 from Apple. Why doesn't Sun release their own implementation of Java for OS X?
...