I have an NSTextView and an NSImageView that is bound to a NSString and an NSImage in my code. I would like to have the displayed string and image cross-dissolve when I change the string and image in code. Any way to do this? Do I need to stop using bindings? (And if I do, is there any trick to getting the string and the image to cro...
I want to have a button where if I click it, then some text is displayed that says "you clicked the button." I know how to do this using IBOutlet and IBAction. Can it be done with bindings? If so, then how?
...
I made an object in Interface Builder. Then I told it to write the class files. But when I go to XCode I can't find the implementation or header files. How can I edit the implementation file?
...
In Interface Builder I made a checkbox and a textbox. When the user checks the checkbox I want a message to appear in the textobx that says "the checkbox is checked." If the box is unchecked I want a message to appear in the textbox that says "the check box is unchecked." The problem is that I don't know how to get the status of the chec...
I made a program that has a checkbox and a textbox. If the user checks the checkbox then the textbox displays "you checked the checkbox." If the user unchecks the checkbox the textbox displays "you unchecked the textbox."
Is it possible to do the same thing with bindings? How?
...
Hi all, getting myself confused with NSString's various range methods and where and when they should be used.
I have a random string. Somewhere in the string it may (or may not) contain an identifier such as "Customer Name:" (the quotes will not be included.)
Problem: I need a new string where everything up to and including "Customer N...
Hi all,
(have searched, but not been able to find a simple solution to this one either here, or in Cocoa docs)
Q. How can I trim all leading whitespace only from an NSString? (i.e. leaving any other whitespace intact.)
Unfortunately, for my purposes, NSString's stringByTrimmingCharactersInSet method works on both leading and trailing...
I would like a NSCell in an OutlineView to display the number of the children the row it's has.
Here's what I mean:
What's on the right, but for all rows.
How would I go about finding out, first, which row the NSCell is and then from there getting the number of children that row has.
...
Hi,
This is really doing my head in, I hope someone can solve my issue.
I'm trying to learn distributed object, bonjour, etc with Cocoa.
I can get things up and running but there's just one case that's annoying me, i don't understand why it's happening.
I'm trying to setup a DO server that advertise itself with Bonjour.
Here's the...
I have a situation similar to this:
http://stackoverflow.com/questions/2698591/objective-c-how-to-use-memory-managment-properly-for-asynchronous-methods
I have an object that asynchronously downloads & parses an xml doc. It then has a delegate method that transfers the data it retrieved to the caller.
My 2 questions are:
When do I rel...
Riddle me this: I am using a NSURLConnection on an iPhone Simulator SDK 3.1.2 object to issue multiple sequential (not concurrent) https requests. Everything works fine 95% of the time, but every so often (maybe around 50-100 requests) I get the situation where the delegate method
- (void)connectionDidFinishLoading:(NSURLConnection *)co...
I'm pretty new to objective C started a few days ago...
I want to count all the chars in a text field. Could
[textField length]
be useful at all and how do I use it?
...
I'm making an app to allow me to stitch images together into a panoramic scene. I want to be able to turn the Flash LED on the iPhone 4 programatically.
How can I do this?
I read the documentation and discovered that I need to use AVCaptureFlashMode
but I can't figure out how 2 use it?
any help would be appreciated.
Updated Code b...
How do I get the ASCII value as an int of a character in Cocoa? I found an answer for doing this in python, but I need to know how to do this in Cocoa. ( I am still a noob in Cocoa).
Python method:
use function ord() like this:
>>> ord('a')
97
and also chr() for the other way around:
>>> chr(97)
'a'
how do I do this in Cocoa?...
Hi friends,
I am trying to put NSArray data by([array valueForKey:@"value_name"]) in uilabel it throws exception.
Regards,
sathish
...
Hi!
I'm new in iPhone development, can you advice me how to serialize AdressBook records?
I have read stackoverflow - How do I serialize a simple object in iPhone sdk, but I still have questions:
should I extend ABRecordRef? Is it possible? Or should I implement own class NSObject?
(similar question was on Mac forums and was left with...
-(IBAction)turningFlashOn:(id)sender
{
AVCaptureSession *captureSession = [[AVCaptureSession alloc] init];
AVCaptureDevice *videoCaptureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
NSError *error = nil;
AVCaptureDeviceInput *videoInput = [AVCaptureDeviceInput deviceInputWithDevice:videoCaptureDevice error:&erro...
Is it possible to embed a webkit plugin into an application directly (bypassing a WebView)?
Specifically I'm trying to embed Silverlight into a Cocoa application. If the silverlight .xap is contained in a html file and that is displayed with a WebView then MouseOver events in the silverlight application aren't called. This appears to ...
I have a program that runs only in the toolbar (w/ time/date, spotlight, etc.) and I want to put an item in the preferences to allow the user to select whether to start my application on the system startup or not. I'm currently lost on where to find some documentation on this. Any links or short code snippets would be much appreciated. T...
I was told that the newest Qt is Cocoa based, and as so, it's 64 bit. And Cocoa is Object-C based, whereas Qt is C++ based.
How is that possible? I mean, how C++ based library can turn into Objective-C related one? Is this just using Objective-C++?
Can any C++ library be Cocoa based using Objective-C++?
...