interface-builder

Iphone - How to align the text justified (newspaper like) in Interface Builder

Is it possible? Align the text fully justified? Does anyone know any hack or Interface Builder plugin? Thanks! ...

How can I implement a "double" UITextField?

I am trying to generate a UITextField in a view like this. I don't mind using IB or doing it programmatically. ...

How to place a navigation controoler upon a tabBar controller in iPhone without using Interface Builder?

Hello, Can you provide me some good link or example, on how to place a navigation controller upon a tabBar controller in iPhone without using Interface builder. i know to create tabBar controller . Plese tel me how to place a navigation in the view provided by tabBar controller. ...

Event path in Mozilla plugin on Mac

I'm writing a mozilla plugin on the mac. I'm trying to capture events like button clicks, etc. I've done the normal thing of creating my views in inteface builder, and linking the sentActions to methods in my program. This works in stand-alone programs. However, in my NPAPI plugin, those methods never get called. The button reacts, depr...

Vertical slider in cocoa application menulet?

I would like to add a vertical slider to my cocoa menulet application. Just like the vertical slider in the system volume menulet. How do I add this using Interface Builder? And if not with Interface Builder then how? ...

Problems connecting a simple iPhone button

I'm trying to create a normal rounded rectangular button in a new iPhone app (I'm an iPhone noob). I created the button (Set Start Date) in interface builder and am trying to hook it up to my view controller (CalendarViewController) in order to change the current view. I want to change the active view to StartDateView. I've been looki...

Navigating iPhone Views/ViewControllers

In my iPhone application, I use a Tab Bar Controller with five items for the main navigation. However, I also need additional ways to change the current view. For example, if the user is on the Calendar tab and clicks on a date, they need to be shown a different view. In order to implement this (and other) types of custom navigation, ...

Sorting NSTableColumn contents

Hey, I have a problem with sorting NSTableColumn contents. In my NSTableView there are three columns: File, Size, Path. The contents are stored in NSMutableArray. Each object in this array is a NSDictionary containing three keys: file, size and path - value for each is a NSString. In Interface Builder, in each Table Column's attribute...

iphone dev: UIImageview subclass interface builder - how to call custom initializer

hi. I messing with iphone developement. I have a uiimageview subclass that I want to use to detect touches. I have sucessfully added to interfacebuilder and I can detect a touch in my UIImageview subclass within my application so all is good on that front. however my UIImageView subclass has a custom initializer which is not called w...

Apple Interface Builder: adding subview to UIImageView

I created UIImageView with the help of Interface Bulder. Now I want to place label inside it (as its subview). In code I can type something like: [myUIImageView addSubview:myUILabel]; But can I do it with the help of IB? I found the solution for UIView, but can't find something similar for UIImageView. ...

Resizing views in Interface Builder

I'm having trouble visualizing something. Let say I have three views inside a scrollview with some other content. Top, buttons and image. buttons and image are both inside top. Top does NOT fill up the scrollview, however, buttons and image DO fill up top. Top has a maximum size determined at runtime, but it might not all be visible. Th...

Anchor UIButton to the left of a UILabel

I have a UILabel with right-aligned text that may vary from between three to seven characters in length. I am trying to anchor a button to the left of this text so that when the length of the text increases, the button will stay the same distance from the left of the label. Is there an anchor setting in Interface Builder, or does it req...

Problem Building Interface Builder Plugin for Custom NSView Class

I am trying to get a plugin working for Interface Builder. Interface Builder version 3.2. XCode 3.2.1 Mac OS X 10.6.2 MacBookPro5,3 I follow the Quick Start directions on the Apple Developer Site: http://developer.apple.com/mac/library/DOCUMENTATION/DeveloperTools/Conceptual/IBPlugInGuide/Plug-inQuickStart/Plug-inQuickStart.html and...

Change xib width in interface builder

Hi, I try to change the dimensions of the view in interface builder from the size tab of the property inspector, however it is grayed out and doesn't let me. Does anyone know how I can edit the dimensions? ...

How to link Interface Builder views

I'm trying to figure out how to link all the views I've made in interface builder with a navigation controller but I'm finding the concept a little tricky to grasp. All the example code I have looked at shows how to do this with arrays that store all your controllers and i'm finding it difficult to adapt to my project as my views have b...

Core-Plot: Unknown class CPLayerHostingView in Interface Builder file

Using core-plot does not seem to be an easy integration task. Header path are already setup. In Interface-Builder I create an CPLayerHostingView which belongs to a View Controller which is instantiated by Interface Builder. When the nib file is loaded I get the message: Unknown class CPLayerHostingView in Interface Builder file ...

When overriding initWithCoder is it always necessary to call [super initWithCoder: coder]

In this code I am loading a View Controller (and associated View) from a .xib: -(id)initWithCoder:(NSCoder *)coder { [super initWithCoder:coder]; return self; } This successfully works, but I do not really understand what the line [super initWithCoder:coder] is accomplishing. Is that initializing my View Controller after my Vi...

Window 'onscreen' size puzzle

Okay, a REALLY fundamental question about window sizes here... If I create an NSWindow in IB, set its size to 216 x 144 points (exactly 3 inches by 2 inches) then print the window, it measures exactly what I set it to in IB. However, the onscreen display size measures approximately 156 x 105 points. What causes this, and is there any w...

Binding the textDidChange event on a NSTextField to a MacRuby delegate

I have a NSTextField within a Window and I created a very simple MacRuby delegate: class ServerInputDelegate attr_accessor :parent def textDidChange(notification) NSLog notification.inspect parent.filter end end And I have tried setting the control's delegate: I have tried setting the Window and every o...

Interface builder UIButton custom background image not working on simulator/device

I'm trying to do something really simple. I have an image for a button and I'm trying to set it on a custom button in interface builder. I set the background image accordingly (no case sensitivity problem here). In interface builder it shows up, but in the simulator or on the device it doesn't appear at all. Just the button's text will a...