How would I declare a class that has a method/message that takes a selector, stores the value of the selector, and then calls the selector later on?
ie if its called SomeObject it would be called like this:
-(id) init {
// normal stuff here
o = [[SomeObject alloc] init];
return self;
}
-(void) checkSomething {
[o check...
I'm seeking further clarification after seeing http://stackoverflow.com/questions/1031715/what-is-responsible-for-releasing-nswindowcontroller-objects
I'm writing a simple inventory management application for my nephews. I have a table view that displays the contents of their "library", etc. To add a new item to the library, they clic...
Hey all,
Do any of you know how to make a screen recorder from Cocoa?
It would be best if someone gave me a source code.
Thanks...
...
Hi!
I've been doing some cocoa since a week, and I'm getting kinda good with it.
I did some tutorials, calculators, currency converter, etc...
But I was wondering if there was any more advanced guide? Like build a RSS reader, or anything else... I dunno..
If you know any good resource for examples please tell me.
PS: I'm reading som...
I want to create an NSMenu with an option similar to the Send To option you'd find in Windows Explorer where it will list the devices attached that you can send the file to.
From my research it seems that it's not possible to define a selector that sends a parameter to the function as well, so it's not a case of having @selector(@"sendT...
I'm really wondering what is stored in the mentioned path?
A side question: May a developer use this path (at least the folder) to store his own temp data?
...
I'm trying to figure out how to update an indeterminate NSProgressIndicator in the UI using a secondary thread while the main thread does some heavy lifting, just like dozens of apps do.This snippet is based on Apple's "Trivial Threads" example using Distributed Objects (DO's):
// In the main (client) thread...
- (void)doSomethingSlow:(...
Hi all,
I've an NSTableView that uses the controller object for the NIB being displayed as the data source. I implement the NSTableView informal protocol.
This NSTableView gets its values from Core Data. I startup the application, load all values I have in XML and then display them.
My problem is, the NSTableView doesn't seem to add a...
I'm writing a framework for OS X that may be used by applications with or without a connection to the OS X WindowServer (i.e. both GUI apps and command-line apps run via, e.g. an ssh session). One class in the framework is for tracking files in the user's home folder across netework and mobile home directories (on OS X, users can have th...
I've got a window which reflects the status of an NSOperation. How should I bind the NSProgressIndicator to the NSOperation's progress-property?
...
I've got a bit of code that handles exporting data from my application. It takes in an NSString full of XML and runs it through a PHP script to generate HTMl, RTF, etc. It works well unless a user has a large list. This is apparently due to it overrunning the 8k or so buffer of NSPipe.
I worked around it (I think) in the readPip...
I have an NSMenu popping out of an NSStatusItem using popUpStatusItemMenu. These NSMenuItems show a bunch of different links, and each one is connected with setAction: to the openLink: method of a target. This arrangement has been working fine for a long time. The user chooses a link from the menu and the openLink: method then deals w...
Hey,
Is anyone aware of a way to receive NSURLDownload's delegate methods on a separate thread, i.e. not the main one? I am using an NSOperationQueue to manage them but at the moment I need to use the performSelectorOnMainThread method to get it too work. The problem with this is that it drives the kernel task crazy reaching about 30% o...
I could use a clean, working, base64 implementation for the purpose of authorization over HTTP for a REST protocol.
Can anybody help me out or point me in a direction?
Thanks.
...
Hey,
How would I be able to send emails using Cocoa? Which framework would I use, and how would I use it. This is very new to me so please go easy.
Best Regards,
Kevin
...
Hi!
I'd like to know if cocoa has a default way of storing data. If yes what is it? I mean like rails is by default using sqlite...
Also I'm searching for a tutorial on how to use it... Like get data and showing it into a listview, etc...
Thanks for your help!
...
Hi Guys
I am writing a app which has about 10 nib files for conveying different UI messages and for taking user input. I want to know how to localize these messages that appear on my custom sheets. Is there any way i can have a single file with generic strings and depending on language it replaces the generic string with string in that ...
hi guys
i am working on an app in which i have to display all the digital certificates available on my Mac laptop.
should i use keychain to get access to these certificates??
where is the physical location of these certificates???
i want to list their names to a standard output. Please reply me with few links with examples(if possibl...
I have a custom NSCell with various elements inside of it (images, various text pieces) and one of those text blocks may have various clickable links inside of it. I have my NSAttributedString correctly identifying the links and coloring them blue however I can't figure out how to get the cursor to turn into a hand and allow a user to ac...
I'd like to adjust the NSApplicationIcon image that gets shown automatically in all alerts to be something different than what is in the app bundle.
I know that it's possible to set the dock icon with [NSApplication setApplicationIconImage:] -- but this only affects the dock, and nothing else.
I'm able to work around this issue some of...