I'm trying to get the attributes of a keychain item. This code should look up all the available attributes, then print off their tags and contents.
According to the docs I should be seeing tags like 'cdat', but instead they just look like an index (i.e., the first tag is 0, next is 1). This makes it pretty useless since I can't tell whi...
I am trying to do some stuff on OS X using the carbon api, but I can't find anything I am looking for on google or the Apple development website.
Ideally I would like to find a function that finds the window at a certain location on screen. It seems that there are similar functions, but one of them says that it only finds windows in th...
Hello,
I just want to realize a simple animation, where a picture is faded in a few seconds after the beginning of the application and then it should be faded out and totally disappear. I've never done any animations on the iPhone so I'm stuck. When using something like image.opacity = 1.0; like in the Developer Documentation I get: erro...
What Mac OS X (leopard) application can I use to create favicon.ico -like ico files?
Note: This is not to create widget icons or the like, but the (e.g. 16x16 pixel) files that appear on a web browser's tab and alongside a bookmark...
...
I have the following code:
(void)loadStateChanged:(NSNotification*)notification
{
if ([[movie attributeForKey:QTMovieLoadStateAttribute] longValue] >= kMovieLoadStatePlayable)
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
long movieScale = [[movie attributeForKey:QTMovieTimeScaleAttribute] longValu...
How do I create a preference pane for my app on Mac. Also, how do I make a preferences section for my app in the iPhone? Thanks for reading.
...
Is it possible to check whether an application(For eg:Adobe Reader) is installed in Mac machine using C#?
If so how to do that?
Please help!
Jay
...
% sudo dtrace -p 2446 'objc$target:NSObject:-init:entry { trace(); }'
dtrace: no probes specified
The manpage suggests that this is the correct format with which to specify a probe on an Objective-C method. I tried -Z, but (unsurprisingly) that just didn't print anything.
[Added] It's not even specific to Objective-C probes. I tried i...
My program:
typedef struct objc_class {
struct objc_class *isa;
struct objc_class *super_class;
char *name;
long version;
long info;
long instance_size;
void *ivars;
void *methodLists;
void *cache;
void *protocols;
} *Class;
struct objc_object {
Class isa;
};
/* Code to extract the class name from arg0 based on a snippet by ...
I am using Eclipse Cocao on Mac OS X 10.5.7, and the program hangs on the innocent line below while initializing variables. If I take it out, the program proceeds.
Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
This line works fine in XP, Vista, Server 2003, and Mac OS X 10.4.11. I have no idea why it infi...
I have an NSSegmentedControl on my UI with 4 buttons. The control is connected to a method that will call different methods depending on which segment is clicked:
- (IBAction)performActionFromClick:(id)sender {
NSInteger selectedSegment = [sender selectedSegment];
NSInteger clickedSegmentTag = [[sender cell] tagForSegment:selec...
Hi,
Can you please tell me how can I dump all the symbols in a .a file on MacOS X?
I am getting a linking error while compiling my c++ problem on MacOS X. I would like to find out if the sybmols exists on the .a file that I am linking with.
Thank you.
...
I'm writing a tool that calls through to DTrace to trace the program that the user specifies.
If my tool uses dtrace -c to run the program as a subprocess of DTrace, not only can I not pass any arguments to the program, but the program runs with all the privileges of DTrace—that is, as root (I'm on Mac OS X). This makes certain things t...
I want to test the Voice Control feature of iPhone 3GS through the simulator. But I don't seem to get the simulator for 3GS. Where can I get one..?
...
Hello,
i want that my bash script does the following:
It finds a file, for example: hello.txt
It searches for a specific text in the file, for example: hey
If it is found, continue to the next thing,
if it isn't found, write the text on a new line & continue to the next thing.
Can anyone give me the script for this?
EDIT: Also i w...
Hi,
Can you please tell me how can I install scons on MacOSX?
I don't see a mac specified download from http://www.scons.org/
Thank you.
...
Hi all,
I need to create a Mac version of our libraries for one of our customers. I am not so familiar with dynamic libraries on Mac, but from what I understand, I have 2 options: .dylib or frameworks. What would be the best option? Why?
Few related questions:
If I understand well, .dylib have to be installed in one of the stnadard U...
I'm starting to learn python and loving it. I work on a Mac mainly as well as Linux. I'm finding that on Linux (Ubuntu 9.04 mostly) when I install a python module using apt-get it works fine. I can import it with no trouble.
On the Mac, I'm used to using Macports to install all the Unixy stuff. However, I'm finding that most of the pyth...
Tortoise SVN on Windows allows a single user without a network connection to create a repository on the user's machine to check code into, without needing any separate server installation or configuration. This is very useful for lone developers. Is there an SVN client for Mac OS X with this feature?
...
I set up JMF using this tutorial http://www.deitel.com/articles/java_tutorials/20060422/PlayingVideowithJMF/ . I set up the mp3 codec in the jmfregistry like you are suppose to and I am able to play any mp3 I want when I use jmstudio. This means I set up everything correctly but when I execute my code I still get this error message:
Una...