I am creating a Cocoa Application for Mac OS 10.6 >, and I want to hide the toolbar of an NSWindow automatically when it is not in use for at least 30 seconds.
I think this can be done with NSTimers, but I'm not familiar with them and I don't know how I can implement this.
Another problem is that both the NSToolbarDelegate and NSWindowD...
I've got a relatively complicated Core Data relationship structure and I'm trying to figure out how to set up value dependencies (or observations) across various to-many relationships. Let me start out with some basic info. I've got a classroom with students, assignments, and grades (students X assignments). For simplicity's sake, we ...
I need to be able to convert RTF or HTML to Markdown-syntaxed plain text for uploading to my server. I need to achieve this in Cocoa/Obj-C 2.0. Does anyone know how to do this?
Thanks so much —» Alex.
Edited Thu 4:53 PM
Umm. In answer to Yuji's comment, I'm trying to make an NSStatusItem droplet that accepts text. It doesn't matter ...
If you're implementing a subclass, you can, within your implementation, explicitly call the superclass's method, even if you've overridden that method, i.e.:
[self overriddenMethod]; //calls the subclass's method
[super overriddenMethod]; //calls the superclass's method
What if you want to call the superclass's method from somewhere o...
I've got an Objective-C program that I need to make AppleScriptable. I've looked through the Apple references and they're all at exactly the wrong level, either for the applescripter, or too high level, or too low level.
Can anyone point me at a good resource for getting started on this? or perhaps a sample project I can poke at?
than...
Hi All,
I am learning iPhone programming. I am starting with a simple example of displaying recently used documents in a UITableView.
What I am confused about is why do I need to have several classes and why cant I just use one?
Example, My class is called RecentFileList.
I need to implement controller, delegate and datasource as wel...
Hi,
I am trying to send a file via Bluetooth using the GameKit framework. The problem I am having though is that I can only send one NSData object at a time, but I need to save it on the other end. this obviously isn't possible without knowing the filename, but i don't know how to transmit that. I've tried to convert it to a string NS...
For some reason in my Cocoa application when I resize the parent window, the drawer doesn't move with it. It just stays where it is on the screen and is detached from the window. I built it using the "Window and Drawer" object and I think it used to work. Everything else about it still works fine (i.e. toggling, etc).
I have compared a...
Is there an open source implementation of a breadcrumb navigation for the Cocoa framework?
Those path bars seem to gain more attraction these days (used in Transmit or Instinctiv) but the implementations I found are closed source.
...
What are my options, if any, of adding additional, arbitrary data to the standard Cocoa about dialog that is displayed by an NSApplication when it receives a orderFrontStandardAboutPanel message.
...
Summary: exporting pixel data from NSOpenGLView to some file formats gives incorrect colours
I am developing an application to visualise some experimental data. One of its functions is to render the data in an NSOpenGLView subclass, and allow the resulting image to be exported to a file or copied to the clipboard.
The view exports the ...
How can I add multiple objects to my NSArray? Each object will have the same value.
Ex.
I want the value "SO" added to my array 10 times
...
How would I get a hold of a singleton in the main application from a SIMBL plugin? When I try to call something like [ProcessControl sharedInstance], I get an error that ProcessControl is undefined (even though it is declared in a header file).
...
I read this in a book.
-(IBAction) updateTweets
{
tweetsView.text = @"";
[tweetsData release];
tweetsData = [[NSMutableData alloc] init];
NSURL *url = [NSURL URLWithString:@"http://twitter.com/statuses/public_timeline.xml" ];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL: url];
NSURLConnection *connectio...
How can I change the color of a cell in my NSTableView?
...
I am trying to create a UIImageView called theImageView in the touchesBegan method that I can then then move to a new location in touchesMoved. Currently I am receiving an "undeclared" error in touchesMoved where I set the new location for theImageView.
What can I do to keep theImageView in memory between these two methods?
EDIT: I am ...
I have some details of user in database but i want to display details for particular user.i want to know which controller is better for that can u give me some advice.Thanks in advance.
...
i want to implement NSForm view in my application i am new in cocoas application.can you advice me about this controller?Thanks in advance.
...
Hello,
My app presently reads and writes to the local Mac OS X 10.6 client addressbook using the AddressBook.framework. It works fine.
10.6 Server introduced AddressBook Server, which 10.6 clients can connect to by setting up a CardDAV Account. User and Group records can be stored in that account, which is synchronized to the 10.6 s...
Hey,
I kind of understand what's retain counts for. But not totally. I looked on google a lot to try to understand but still I don't.
And now I'm in a bit of code (I'm doing iPhone development) that I think I should use them but don't know totally how.
Could someone give me a quick and good example of how and why using them?
Thanks!
...