interface-builder

Which GUI is similar to listbox on iphone?

I'm trying to move a former app from windows mobile to iphone. Any ideas which GUI in Interface Builder has the similar function as listbox? ...

What does "Controller Key" mean in Interface Builder > Inspector > Bindings?

I can't find in the Docs where they explain all those fields and what they mean. Especially "Controller Key" is not clear to me. ...

What describes an "Outlet" best in objective-c / Cocoa?

Can someone explain in an humanly understandable way what an "Outlet" is? ...

What's the point of the "Controller Key" property in IB in the Inspector > Bindings pane?

Apple says: An attribute of an NSController object. When binding to an NSController object, you use this field to select the first entry in the key path. The menu associated with this field displays the properties available on the selected controller object as a convenience. You can type the name of the property or simply select it f...

Binding a custom NSView: Does it demand creating an IBPlugin ?

I have created a subclass of NSView to draw an image as a pattern: @interface CePatternView : NSView { NSImage* image; id observableObjectForImage; NSString* keyPathForImage; } @end I implemented the following to expose bindings: + (void)initialize { // Expose the "image" binding to IB. [self exposeBinding:@"i...

Subclassing a NSTextField

First off; I'm a COMPLETE newbie at Cocoa, so please bare with me for asking what I am sure is an inane and utter newbish question. My situation is as follows: I want to expand on the functionality of NSTextField. AMong the things I want to achieve is: Changing the look and feel of the caret. Detecting when the text reaches a certain...

Tutorial on NOT using Interface Builder for iPhone GUI design?

Does anyone know of a good tutorial on iPhone GUI design using just code and not Interface Builder? I am new to iPhone development, and I wanted to better understand what is going on behind the scenes. ...

[iPhone] tabBar viewControllers in IB: send custom init?

Hello, My tabBarController-based app has several tabs. Each has a custom viewController class, the only difference being the way the instance is initialized. Is there a way to make interface builder send the different tabs custom init parameters? Currently I'm doing the initialisation in viewWillAppear, but for a bunch of reasons it wo...

Cocoa without Interface Builder, initialize an instance of app controller?

I don't plan to write applications without IB, I'm just in the process of trying to learn more about programming. How can I get a single instance of my AppController class at startup? (It's normally loaded from the nib.) And can you clear up the use of +initialize and -init? If I understand, +initialize is called on all classes at sta...

iPhone SDK: IBAction

I have a situation where I'd like a button to respond to two different IBAction methods. Is there a way that I can force a particular method first? When I look at the buttons connections in IB they are in the correct order, but they consistently perform in the opposite order. ...

Interface Builder "Simulate Interface" not working

I am using Interface Builder to play around with some ideas. I never noticed that there is a "Simulate Interface" feature which apparently will render the nib in the iPhone simulator. So, I created a view, put one component in there (a Segmented Control), saved it, selected "Simulate Interface", the simulator launched but... nothing rend...

Design Pattern: Builder

I have looked for a good example of a Builder pattern (in C#), but cannot find one either because I don't understand the Builder pattern or I am trying to do something that was never intended. For example, if I have an abstract automobile and abstract builder methods to create car parts, I should be able to send all 30 of my choices to ...

In Cocoa/Interface Builder, how to clear text in textfield after button click

Hey guys, I am making a simple Twitter update application using MGTwitterEngine and I can't seem to get the TextField in Interface Builder to clear the text after they click the "update" button. Is there an easy method that I could do this with or something in Interface Builder? Thanks a lot! ...

Chaos with InterfaceBuilder

Hi Friends, Please clear this scenario. I created a viewController named RootViewController,so obiviously we'll get RootViewController.h and RootViewController.m Then i created a nibfile named ViewScreen.xib by selecting a newFile named viewXib, so automatically we'll get a View in the xibfile.And i linked FilesOwner class to RootVi...

Best route to creating a Calendar based Date picker for Cocoa?

I'd like to implement a date picker using a calendar. Before I go ahead and try to build one, is there something that does this already? I've looked at the date picker in Interface Builder and it's pretty much just a text field as far as I can tell. And looking (albeit quickly) through the developer docs, it seems there's plenty of dat...

Keyboard Appearance Defaults to UIKeyboardAppearanceDefault on Dismissal

First time Stack Overflow poster. Please bear with me! :) I have a set of UITextFields whose keyboard appearance I set in Interface Builder. I'm using the UIKeyboardAppearanceAlert appearance (the translucent look) for my keyboards. However, whenever I call resignFirstResponder on any of these text fields to dismiss the keyboard, the ke...

iPhone - Strange Compile Errors.

I have an iPhone (Xcode) Project that was working fine. Something must have been changed, because all of a sudden I am getting errors that pertain to NSLog, UIActionSheet, and several other items I have been using JUST FINE until now. What am I missing? Any assistance would be GREATLY appreciated! Checking Dependencies Ld /Users/markgo...

Good iPhone SDK tutorials

Hello, I'm looking for good iPhone SDK tutorials in terms of using Interface Builder to set up views (like using the Navigation Controller or Tab Bar Controller). I can't seem to set one up correctly and add it as a sub view for the main app window to display. I always get a blank screen and I've yet to find something that helps me. An...

iPhone Interface Builder and Delegates

When I make a sample app (ie, start out with a tab bar application or something), in my MainWindow.xib file, I see 5 items listed -- File's Owner, First Responder, App Delegate, Window, and Tab Bar Controller. If I make another .xib file, and make a delegate for it, and set that File's Owner to my new delegate that I just made, I do NO...

Is there an easy to understand guide (new to Cocoa, Xcode, etc) for Interface Builder that talks about proxy objects?

Back in the day of C/C++, the part of the language that really hung me up was pointers. I understand them now, of course. Now, Interface Builder Proxy Objects or more importantly, how to use Interface Builder and what to put in the .XIB window (window that contains the File's Owner, First Responder, etc...) for a given XIB. I've gone t...