interface-builder

Cannot bind NSSlider in IB?

I just created a new Xcode project. In the AppControl class Header file I have the following objects defined (and some other ones, too): IBOutlet NSImageView *inputImageView; IBOutlet NSImageView *outputImageView; IBOutlet NSTextField *myNoiseLevel; IBOutlet CGFloat *mySharpness; After putting the basic code int...

UIVIewController wrong position before rotate

I have the starter point of my application this window (white background): - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { mainScreen = [[MainScreenController alloc] initWithNibName:@"MainScreenController" bundle:[NSBundle mainBundle]]; // add it to the main window ...

Remove clear button (grey x) to the right of UISearchBar when cancel button tapped

Right, to begin my question, here's some screenies of the problem already solved by the Spotify app: Spotify's Step 1: Standard UISearchBar not in editing mode. Spotify's Step 2: UISearchBar now in editing mode. Search term entered. Cancel button slides in from the right, and the clear button (grey x) appears. Spotify's Step 3: Ca...

Which class will be instantiated

Say I have 2 subclasses from UIViewController, class A and class B. In Main nib file an object is representing class A and it is set to load file from Secondary nib file. The owner of Secondary nib is of class B. The question is - from which class an object in Main nib file will be instanciated once the nib files unarchived in the memor...

How to edit subviews of a custom cocoa plugin

If you add a custom view to a xib, then add a textfield, you can select the textfield and edit properties. If I create a custom view as a plugin and it has a textfield as a child view, how do I edit the values of the textfield at design time when using the plugin? ...

interface builder breaks on dual display

Hi, I frequently connect and disconnect my laptop from a secondary display. Additionally I work in a small group that uses svn to manage xib files. It seems that if you drag a UIView display into a secondary display in interface builder and save the xib then either disconnect that display or open it on a computer with a secondary displ...

Possible causes of black(iphone-touch) screen on(after) launch?

I have a simpe window based application that loads a series of images on launch. Only one nib(MainWindow.xib) with a UIView and UIToolbar. It WAS working, both in the simulator and external device. I had some SDK issues for a while(I had removed needed SDK's) but it is now compiling again without errors and I see the launch image corr...

Accessing objects on one nib file from another nib file

I have two nib files - Main.nib and Preference.nib In Main.nib file I have an instance of NSView class.Its window has a NSPopUpButton which on clicking shows a menu .In the menu I have show Preferences menu item. Menu item on clicking shows a preferences panel containing a color well item. On clicking color well a color panel is displaye...

any Cocoa control code that I can use that acts as a patch bay?

I would like to make a patch bay type control... any source online that anyone knows of that I could work from? Thanks ...

Can't restore appDelegate window outlet in IB

Hi, I accidentally deleted my appDelegate window outlet and don't manage to resore it again. My window based App has a TabBarController. I am using xCode 3.1.3. See belows link to a screenshot of IB with appDelegate outlets. http://www.rodiun.com/innflohmation/x23/IB-appDelegate.jpg any hint is most appreciated, my appDelegate code...

Is it correct that a NIB can't be used by many different classes?

Example: Can I make a NIB which represents an view hierarchy, and use this NIB with multiple different UIViewController subclasses? Because: The File's Owner seems to be set hard to a specific class. What's the point of that? Is the Nib Loading System looking through all xib files and figuring out from them which Class wants which xib? ...

UIScrollView - resize only some of the subviews?

Hi Forum I have a UIScrollView with a UIView in it which contains Images and Buttons. Now, I try to achieve the following: When I zoom in the scrollView, only SOME of the content in the UIView should scale (namely, the images), the buttons should remain in the same size, but should be repositioned according to the new scale... Think ...

Convert iPhone App to iPad App (Just The Easy Part)

I make a basic View-Based application for iPhone in XCode 3.2, but when I switch the emulator to the iPad, the application gets "framed" (not sure what the right term is): If I adjust the width of the View(s), it has no effect. I cannot adjust the width of the "Window" in Interface Builder (it's greyed out, and adding another Window t...

UIImageView with jpg has incorrect size

I'm at a loss with an UIImageView that I load into a scroll view. The original jpg Image has 1600 x 2000 pixels. In Interface builder I set the image frame to 1600 x 2000. When I run it and NSLog the image bounds I get a bounds size of 1603.565 x 1830.737 (?)!. The image also doesn't really reach down to the end, but takes an actual s...

iPhone UIImage overlapping text

I have a view with a UIScrollView, UIImageView for a background, and a UITextView. I have created several other views just like this and they all come out okay - with a background image and scrollable text but for some reason, now I can't make that work. Either my image overlaps all of the text so that I can't read it or the UITextView...

UITabBar look like UIToolBar (changing color of UITabBar)

Hey. Is it possible to make a UITabBar look like a UIToolBar, while maintaining its UITabBar-functionallity? Make the UITabBar (bottom) look like the UIToolBar (top). Thank you. In addition to my question, I want to know how I can change the backgroundcolor of my tabBar. Is is possible? Does anybody have a library that subclasses th...

Persistent UIBarButtonItem in UINavigationBar?

Hey. I have an UINavigationController with a UIBarButton to realod something. However, when I push another view on the Navigation Controller, the BarButtonItem disappears. How can I avoid this? Do I need to add some code in the NavigationController, or set a property for the BarButtonItem? Thank you. ...

How to disable highlighting in XCode's Interface Builder

Is there a way to disable object highlighting in interface builder? I am testing out a lot of different colors for an object, but the highlighting is making it a difficult process. Thanks in advance! ...

Is it possible to have UITabBarItem without image, but with bigger text instead?

Is it possible to have UITabBarItem without image, but with bigger text instead? e.g.: to have text with full height? ...

NSPredicateEditor Just Won't Show Up

I'm having a really weird problem. I'm trying to put an NSPredicateEditor into my interface using IB, and when I build the app it just shows up as an empty gray rectangle. This is without my applying ANY CHANGES WHATSOEVER to the defaults, including not modifying the default templates. What could possibly be going on? ...