Interface Builder and subclassing

Is it possible for me to have the outlet in Interface Builder pointing to a superclass... then in the code using that interface to point to a subclass?
So for example, suppose I'm setting up an interface in Interface Builder with a HumanView (let's say this is a subclass of UIView)... suppose this is like a character in an MMORPG... and you're customizing your chaacter...
and correspondingly in my code I have:
IBOutlet HumanView *character;
But I'm uncertain whether this view will be a female or male character... In my code I have two subclass of HumanView... FemaleView and MaleView... each with its own unique instance variables and methods...
Is it possible for me to decide in the program to have make "character" a FemaleView or MaleView?
Thanks.
Message was edited by: iphonemediaman

Not a problem. I did realize I should add one minor clarification.
1) You can cast a quadralateral to a square in one instance. When you know that actual object (the structure in memory) is a square.
So, to be complete, you can safely cast a the square to a quadralateral all day long -- you know that a square is always a quadralateral. But if you are going to cast the quadralateral to a square, you should make sure you actually have a square object. The compiler will let you do it (might show a warning), but you could end up trying to reference pieces of a square that may not actually be part of the actual object. aka (in pseudo code):
// no issues with these two alloc/inits
Quad *foo = (Quad *)[[Square alloc] init];
Quad *bar = (Quad *)[[Rectangle alloc] init];
// both would return 4
[foo numSides];
[bar numSides];
// if setSideLength is only a method on a Square, then
// first line works fine
[(Square*)foo setSideLength:20.0];
// this line, however, will likely give a compiler warning and then
// an EXC_BAD* error during runtime -- bar is not actually a square
// in memory, despite what you are telling the compiler
[(Square*)bar setSideLength:20.0];
I hope I didn't conuse the issue -- but wanted to clarify.
Cheers,
George

Similar Messages

  • What to do if you use a segmented control in interface builder and it doesn't work ?

    What to do if you use a segmented control in interface builder and it doesn't work ?

    The first thing to do would probably be to update your profile and/or signature so people will know what OS, language, and development system you are using, then perhaps include some additional information such as what "it doesn't work" means, and possibly a few other things like some error logs, what you have done so far, maybe a code snippet or two, etc.

  • Interface builder and xcode

    ok, im a complete newbie to xcode and interface builder,
    so, wen i try to make a connection for a new outlet and click 'files owner', all it shows is 'delegate', instead of files tat i hav in my resource folder, or the files im supposed to hav, anyone could help me on this? it would be appreciated greatly, thx

    Hello joshup7 & welcome to the forums...
    Generally speaking, you first need to properly specify items in your templates/code (*.m & *.h files) in Xcode and then they will show up when making connections in IB. Who/what/where/why depends on your specific code, naming conventions, etc.
    See this page from Apple:
    http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptua l/IB_UserGuide/Introduction/Introduction.html
    And this sample/tutorial that should cover the basics:
    http://www.iphonesdkarticles.com/2008/07/first-iphone-application.html
    ...see the section on 'Connecting Instance Variables'.

  • Cannot open nib - The application Interface Builder quit unexpectedly

    Just installed the iPhone SDK and installed sample code. The Interface Builder will not start. At startup, the following message is displayed: "The application Interface Builder quit unexpectedly."
    I've tried the standard Xcode SDK and it has the same problem. I've repaired permissions on the disk, to no avail. I'm stumped on this. Thanks for any suggestions.
    Here's the first section of the crash report, showing the builds for Interface builder and Mac OS X (10.5.6).
    Process: Interface Builder 8090
    Path: /Developer/Applications/Interface Builder.app/Contents/MacOS/Interface Builder
    Identifier: com.apple.InterfaceBuilder3
    Version: 3.1.2 (677)
    Build Info: InterfaceBuilder-6770000~1
    Code Type: X86 (Native)
    Parent Process: launchd 137
    Date/Time: 2009-01-03 19:29:24.618 -0700
    OS Version: Mac OS X 10.5.6 (9G55)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000011
    Crashed Thread: 0
    Thread 0 Crashed:
    0 com.apple.CoreFoundation 0x910272b4 CFRetain + 36
    1 com.apple.HIToolbox 0x911ff566 TThemeFont::SetCTFont(__CTFont const*) + 62
    2 com.apple.HIToolbox 0x911ff4f4 TThemeSpecifiedFont::Init(THIThemeTextInfo const*) + 32
    3 com.apple.HIToolbox 0x9110ccb3 ThemeFontCreate(THIThemeTextInfo const*) + 239
    4 com.apple.HIToolbox 0x9110cb85 TThemeText::ConstructThemeFontWithFontID(__CFString const*, THIThemeTextInfo const*) + 79
    5 com.apple.HIToolbox 0x9110ca49 TCoreTextEngine::Init(void const*, THIThemeTextInfo const*) + 159
    6 com.apple.HIToolbox 0x9110c781 TThemeTextCache::Create(void const*, THIThemeTextInfo const*) + 177
    7 com.apple.HIToolbox 0x9110c659 ThemeTextCreate(void const*, THIThemeTextInfo const*) + 33
    8 com.apple.HIToolbox 0x9110c3b5 DataEngine::GetTextDimensions(void const*, float, HIThemeTextInfo*, float*, float*, float*) + 289
    9 com.apple.HIToolbox 0x9110c250 HIThemeGetTextDimensions + 202
    10 com.apple.HIToolbox 0x912abbad HIClockView::CalculateTextDimensions() + 133
    11 com.apple.HIToolbox 0x912abd82 HIClockView::GetOptimalSizeSelf(CGSize*, float*) + 118
    12 com.apple.HIToolbox 0x9114852d HIView::SendGetOptimalBounds(CGRect*, float*) + 151
    13 com.apple.HIToolbox 0x9114846d HIView::GetOptimalSize(CGSize*, float*) + 53
    14 com.apple.HIToolbox 0x9119bd85 GetBestControlRect + 105
    15 ...terfaceBuilder.CarbonPlugin 0x162f127a IBWindowForHostingCarbonControls + 9638
    16 ...terfaceBuilder.CarbonPlugin 0x162f1b1f IBWindowForHostingCarbonControls + 11851
    17 ...terfaceBuilder.CarbonPlugin 0x162f2766 IBWindowForHostingCarbonControls + 14994
    18 ...terfaceBuilder.CarbonPlugin 0x162f37c8 IBWindowForHostingCarbonControls + 19188
    19 ...terfaceBuilder.CarbonPlugin 0x162eb17a 0x162e5000 + 24954
    20 com.apple.InterfaceBuilderKit 0x002c65e0 -IBLibraryObjectTemplate classesOfPasteboardObjects + 194
    21 com.apple.InterfaceBuilderKit 0x002c64b9 -IBLibraryController typeSummaryForObjectTemplate: + 106
    22 com.apple.InterfaceBuilderKit 0x002c5fc4 -IBLibraryController createAssetForTemplate:inNamespace: + 554
    23 com.apple.InterfaceBuilderKit 0x002c4fe3 -IBLibraryController createAssetsFromTemplatesInNibNamed:forPlugin: + 746
    24 com.apple.InterfaceBuilderKit 0x002c499e -IBLibraryController loadLibraryObjectsForPlugin: + 287
    25 com.apple.InterfaceBuilderKit 0x002c414e -IBPlugin didLoad + 480
    26 ...terfaceBuilder.CarbonPlugin 0x162ea66f 0x162e5000 + 22127
    27 com.apple.InterfaceBuilderKit 0x002c389f -IBPluginController loadPluginAtPath:error: + 2809
    28 com.apple.InterfaceBuilder3 0x00002345 0x1000 + 4933
    29 com.apple.AppKit 0x91f983a3 -NSApplication run + 83
    30 com.apple.AppKit 0x91f658a4 NSApplicationMain + 574
    31 com.apple.InterfaceBuilder3 0x00004eca 0x1000 + 16074

    Thanks for asking. It happens when I click the "Interface builder.app" name in finder and when I double-click an .xib file name in finder.
    As I mentioned, I have repaired permissions on the drive to no avail. I have also read older posts on the web referring to various preference plist files but those don't exist with this build of xcode.
    I have also had older builds of xcode on this mbp and worked thru a couple of tutorials. Interface Builder from those older builds worked. I'm not sure were to get them, now, and I doubt they would have the iphone sdk included.

  • How to instantiate a control in code instead of using Interface Builder ?

    I really appreciate the combination of the interface builder and Xcode altogether.
    However when I am learning QT, I realize I had been pampered by Apple's Design to a certain extend as I only need to create say a NSLabel instance and use Interface Builder to do the linking and never have to worry about instantiating the Object myself.
    But I'm curious, what is the way to instantiate a new hmmm say...NSLabel in the code ?
    NSLabel* label = new NSLabel();
    Then what ?
    What you are seeing here is how QT did it, could anyone create an equivalent in ObjC ? No fancy code please, just bare minimum.
    #include <QApplication>
    #include <QWidget>
    #include <QLabel>
    int main (int argc, char * argv [ ])
    QApplication app(argc, argv); //NSApplication in ObjC
    //These two lines merely created a window and set the title bar text.
    QWidget* window = new QWidget();
    window->setWindowTitle("Hello World");
    QLabel* label = new QLabel(window);//Create a label and inform the it belongs to window.
    label->setText("Hello World");
    window->show();
    return app.exec();
    Message was edited by: Bracer Jack

    Hi Jack -
    I think my best answer will be something of a disappointment, because I don't know how to show a one-to-one correspondence between the code you're working with and a Cocoa program. The main function of a Cocoa GUI program for OS X will look something like this:
    #import <Cocoa/Cocoa.h>
    int main(int argc, char *argv[])
    return NSApplicationMain(argc, (const char **) argv);
    As you commented, we could draw a correspondence between the first statements, but after that the functionality of the Cocoa program is going to be spread out in a way that makes for a rather tedious comparison. The only way I know to answer your question in less than 5000 words, is to skip ahead to one of several points in the startup sequence where the programmer can intervene with custom code.
    For example, a common way to get control would be to program a custom controller class and add an object of that class to the main nib file which is loaded during the startup sequence. By making a connection to the Application object in that nib file, the custom object could be made the delegate of the Application object, and if we then added a method named applicationDidFinishLaunching, our code would run as soon as the application's run loop was started.
    Now I finally have enough context to directly answer your question, so here is the code to create a label and add it to the key window at launch time:
    // MyAppController.m
    #import "AppController.h"
    @implementation AppController
    - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    NSLog(@"applicationDidFinishLaunching");
    NSRect frameRect = NSMakeRect(150, 300, 150, 30);
    NSTextField *label = [[NSTextField alloc] initWithFrame:frameRect];
    [label setEditable:NO];
    [label setStringValue:@"Hello World!"];
    [label setFont:[NSFont labelFontOfSize:20]];
    [label setAlignment:NSCenterTextAlignment];
    NSView *contentView = [self.window contentView];
    [contentView addSubview:label];
    @end
    If I needed to develop a worst case scenario for this thread, the next question would be, "Ok sure, but your code still needs a nib to start up. I want to see a Cocoa GUI program that doesn't require any nib".
    It turns out that it's quite easy to build a simple iPhone app without any nib, but it's considerably more difficult for an OS X app. If anyone wants to see my nib-less iPhone code, I'll be happy to post it (I think I did post it here once before, and the response was underwhelming). But I've never attempted the much more difficult nib-less OS X app. Just in case you really want to go there, here's a blog that goes into the details: [http://lapcatsoftware.com/blog/2007/07/10/working-without-a-nib-part-5-open-re cent-menu>.
    Hope some of the above is helpful!
    - Ray

  • Trying to create first iPhone app, use Interface Builder or Xcode first?

    I'm trying to create my first iPhone App, do I start with Interface Builder or Xcode first? And how do I link the two together?

    It's not really that simple -- you'll be working with both. Interface Builder is used to design the GUI (graphical user interface, which consists of the windows and buttons and text fields and so forth, the parts of the application that your user interacts with). Xcode, on the other hand, is used to write the code that tells that GUI what it's supposed to do, and how to do it. So, to answer your question as best I can -- generally, I would imagine you would want to start by creating the basic form of your GUI in Interface Builder and then start coding where appropriate in Xcode, then you'll move back and forth between the two (Xcode and Interface Builder) as needed.
    If you're new to programming and want to start with iPhone apps, I recommend picking up a book on the topic (Apress publishing has a book called "Beginning iPhone 3 Development: Exploring the iPhone SDK" that is a good one, and don't forget to take advantage of Apple's iOS Dev Center, which has lots of good documentation on most any topic that will be helpful in supplementing the information in the book you buy -- click [here|http://developer.apple.com/iphone/index.action] to go there).
    Keep in mind, however, that trying to learn to program iPhone apps will be difficult (to say the least) if you don't already know Objective-C, and the Apress book I recommended above will not be easy to follow without understanding Objective-C first. Objective-C an object-oriented extension of C, and it is the programming language that is used to develop iOS apps (apps for the iPhone, iPod touch, or iPad). I would definitely recommend learning Objective-C on the Mac before jumping in to iPhone development in specific. Apress has another book called "Learn Objective-C on the Mac" that I would recommend for this.
    Furthermore, since Objective-C is an extension of C, you won't have an easy time learning it without a prior understanding of the C programming language. Again, Apress has a book for this, called "Learn C on the Mac."
    Put simply, learning to program for the iPhone is not something that comes overnight -- it's a step-by-step process that takes patience, and you have to be willing to go through these steps if you want to learn to program properly for the iPhone.
    Step 1 -- learn the C programming language
    Step 2 -- learn the Objective-C programming language
    Step 3 -- apply your knowledge to developing for iOS (iPhone's operating system) with the Cocoa Touch framework
    Anyways, that's just my advice -- I definitely recommend taking the time to do it right and not jumping straight into the deep end, but in the end only you know what works best for you. Also, like I said, I definitely think investing in a book on the subject is worth the time and money, so let me know if you want any other recommendations for books beyond the ones listed above.
    Hope this was helpful to you, and best of luck with your journey toward programming for iOS.

  • DELETE or make TITLE BAR INVISIBLE in XCODE INTERFACE BUILDER

    Im trying to figure out how to make the title menu invisible or to simple delete it all together, it serves no purpose in my app, and i would really like it to be gone, any ideas?

    >The only trick is that you have to load the NIB file manually. Here's the code to put up your >dialog:
    >
    >IBNibRef dialogNibRef = NULL;
    >WindowRef windowRef = NULL;
    >CFBundleRef bundle = CFBundleGetBundleWithIdentifier(kMyBundleIdentifier);
    >CreateNibReferenceWithCFBundle(bundle, kMyNIBName, &dialogNibRef);
    >CreateWindowFromNib(dialogNibRef, kMyWindowName, &windowRef);
    >DisposeNibReference(dialogNibRef);
    >
    >Having done this, you can show the window using RunAppModalLoopForWindow.
    Could you please explain these steps more in detail Aaron. I've setup a UI using the Interface Builder and have put the above mentioned code into DissolveUIMac.cpp but i am getting the following errors:
    error: 'kMyBundleIdentifier' was not declared in this scope
    error: expected constructor, destructor, or type conversion before '(' token
    error: expected constructor, destructor, or type conversion before '(' token
    error: expected constructor, destructor, or type conversion before '(' token

  • Web Interface Builder & Variable???

    Hi,
    Can someone help me to resolve this two issues.
    I try to create variables by using web interface builder.
    <b>1)</b>The variable- company code-<b>US100, CA100</b> are only ones I use in the selection of my planning leveL. <b>However, it shows all possible entries for the variable-company code</b> when I added the variable-company code in the web interface builder.
    <b>2)</b>Another variable-forecast year, I created it in the planning area (using 'fiscl year') and try to add this variable in the web interface builder and got <b>an error message-the selection to 0fisclyear is not 'restricted'.</b>
    Advices are appreciated.
    J.

    1) Set "Planning level" property of selector for you variable in web interface builder
    2) Restrict fiscal year

  • Can I no longer browse classes in interface builder?

    in tiger, I used to be able to browse classes in interface builder, and from their I could create subclasses, and create actions and outlets. then I could create files for the classes from the classes menu. then when I went back to xcode I would have empty class file templates that I could then write the methods for.
    also, I could easily instantiate my class via the classes menu.
    alas, now I cannot find these features. have they dissappeared entirely? is there an equivilant way to do this?

    I found that disturbing too...
    However the system changed completely. You can no longer define the super-class directly in Interface Build, however you can still define classes there with IBOutlets and IBActions.
    First, to instantiate a blue cube as a custom object, simply drag a blue cube from the Library windows inside : Library --> Cocoa --> Objects & Controllers --> Controllers.
    To set the class, go in Identity inspector (CMD + 6) here you'll be able to define the class name, its outlets and its actions, you can even define the action argument type (sender) here, however, weirdly, they took the ability to add the colon directly at the of the method name, so you'll have to add it yourself.
    However, Apple documentation advise you to add methods and outlets directly in Xcode and not in IB, "Whenever you want to create a new controller class, or add an outlet or action to an existing class, do it in Xcode."
    Indeed, if IB is opened at the same time, it will update the class's outlets and actions directly, Xcode and IB are more binded together than before.
    Message was edited by: PsychoH13

  • The application Interface Builder quit unexpectedly

    Just installed the iPhone SDK and installed sample code. The Interface Builder will not start. At startup, the following message is displayed: "The application Interface Builder quit unexpectedly." I've tried the standard Xcode SDK and the interface builder has the same problem. I've repaired permissions on the disk, to no avail. I'm stumped on this.
    Here's the first section of the crash report, showing the builds for Interface builder and Mac OS (10.5.6).
    Process: Interface Builder [8090]
    Path: /Developer/Applications/Interface Builder.app/Contents/MacOS/Interface Builder
    Identifier: com.apple.InterfaceBuilder3
    Version: 3.1.2 (677)
    Build Info: InterfaceBuilder-6770000~1
    Code Type: X86 (Native)
    Parent Process: launchd [137]
    Date/Time: 2009-01-03 19:29:24.618 -0700
    OS Version: Mac OS X 10.5.6 (9G55)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000011
    Crashed Thread: 0
    Thread 0 Crashed:
    0 com.apple.CoreFoundation 0x910272b4 CFRetain + 36
    1 com.apple.HIToolbox 0x911ff566 TThemeFont::SetCTFont(__CTFont const*) + 62
    2 com.apple.HIToolbox 0x911ff4f4 TThemeSpecifiedFont::Init(THIThemeTextInfo const*) + 32
    3 com.apple.HIToolbox 0x9110ccb3 ThemeFontCreate(THIThemeTextInfo const*) + 239
    4 com.apple.HIToolbox 0x9110cb85 TThemeText::ConstructThemeFontWithFontID(__CFString const*, THIThemeTextInfo const*) + 79
    5 com.apple.HIToolbox 0x9110ca49 TCoreTextEngine::Init(void const*, THIThemeTextInfo const*) + 159
    6 com.apple.HIToolbox 0x9110c781 TThemeTextCache::Create(void const*, THIThemeTextInfo const*) + 177
    7 com.apple.HIToolbox 0x9110c659 ThemeTextCreate(void const*, THIThemeTextInfo const*) + 33
    8 com.apple.HIToolbox 0x9110c3b5 DataEngine::GetTextDimensions(void const*, float, HIThemeTextInfo*, float*, float*, float*) + 289
    9 com.apple.HIToolbox 0x9110c250 HIThemeGetTextDimensions + 202
    10 com.apple.HIToolbox 0x912abbad HIClockView::CalculateTextDimensions() + 133
    11 com.apple.HIToolbox 0x912abd82 HIClockView::GetOptimalSizeSelf(CGSize*, float*) + 118
    12 com.apple.HIToolbox 0x9114852d HIView::SendGetOptimalBounds(CGRect*, float*) + 151
    13 com.apple.HIToolbox 0x9114846d HIView::GetOptimalSize(CGSize*, float*) + 53
    14 com.apple.HIToolbox 0x9119bd85 GetBestControlRect + 105
    15 ...terfaceBuilder.CarbonPlugin 0x162f127a IBWindowForHostingCarbonControls + 9638
    16 ...terfaceBuilder.CarbonPlugin 0x162f1b1f IBWindowForHostingCarbonControls + 11851
    17 ...terfaceBuilder.CarbonPlugin 0x162f2766 IBWindowForHostingCarbonControls + 14994
    18 ...terfaceBuilder.CarbonPlugin 0x162f37c8 IBWindowForHostingCarbonControls + 19188
    19 ...terfaceBuilder.CarbonPlugin 0x162eb17a 0x162e5000 + 24954
    20 com.apple.InterfaceBuilderKit 0x002c65e0 -[IBLibraryObjectTemplate classesOfPasteboardObjects] + 194
    21 com.apple.InterfaceBuilderKit 0x002c64b9 -[IBLibraryController typeSummaryForObjectTemplate:] + 106
    22 com.apple.InterfaceBuilderKit 0x002c5fc4 -[IBLibraryController createAssetForTemplate:inNamespace:] + 554
    23 com.apple.InterfaceBuilderKit 0x002c4fe3 -[IBLibraryController createAssetsFromTemplatesInNibNamed:forPlugin:] + 746
    24 com.apple.InterfaceBuilderKit 0x002c499e -[IBLibraryController loadLibraryObjectsForPlugin:] + 287
    25 com.apple.InterfaceBuilderKit 0x002c414e -[IBPlugin didLoad] + 480
    26 ...terfaceBuilder.CarbonPlugin 0x162ea66f 0x162e5000 + 22127
    27 com.apple.InterfaceBuilderKit 0x002c389f -[IBPluginController loadPluginAtPath:error:] + 2809
    28 com.apple.InterfaceBuilder3 0x00002345 0x1000 + 4933
    29 com.apple.AppKit 0x91f983a3 -[NSApplication run] + 83
    30 com.apple.AppKit 0x91f658a4 NSApplicationMain + 574
    31 com.apple.InterfaceBuilder3 0x00004eca 0x1000 + 16074

    I had customized the date & time formats in the International settings. Once I set those back to the default formats, Interface Builder runs just fine.

  • Interface Builder - Picker + orientation

    Hi all,
    I just wanted to know if there is any way to add pickers to an application from Interface Builder, or do these have to be done programatically ?
    Also, is there any way to start a nib in interface builder that assumes / forces orientation into landscape when the application is started, as opposed to all applications being started as portrait ?
    Thanks...

    Thanks, but I'm still struggling to understand the interaction between Interface Builder and iPhone. I've built a xib that contains a UIView that I changed the class of to UIPickerView.
    After this, what do I need to do? Looking at the UIPickerView docs, it looks like I need to provide a delegate and a datasource.
    I can find examples of implementing the whole thing in code, but how do I do part of it in IB like I've done, and then provide the delegate and the datasource in the code ?
    I'm assuming that I need to associate an object / class with the Picker, but I'm not really sure I understand that at all.
    Are there any good starter docs out there for building an app in IB and then working with that in Xcode ?
    TIA,

  • Interface Builder fonts?

    I'm just starting to figure out Interface Builder/ Xcode, but I've run across either a very bad bug or something I'm missing. Hopefully the latter.
    I made a new iOS (iPad) project, opened the .xib file in Interface Builder, and added, among other things, a "Scrolling text view". I can edit the text and change the font size, but any attempt to change the font itself doesn't work. As in, as long as I'm in edit mode (of the text) the font appears to change, but as soon as you click out of edit mode the font changes back to Helvetica. And the iOS Simulator shows Helvetica too. :/ I don't have the Developer Membership yet, so I can't try it out on my iPad, but I assume it would do the same thing.
    Is there some switch that needs to be turned on/off? I've googled but haven't found much. Or is it a bug? (a very bad one, if so)

    You need to post this in the right forums. Those are the developer's forums at developers.apple.com. You may also try the Developers forum here. But if you wish to be an authorized iOS developer then you need to join the iOS Developers and pay your $99 annual membership fee for registration.

  • Interface Builder Assertion Failure at initialization/startup

    Interface Builder appears to be unusable...
    I get four (4) alert messages at the start of running Interface Builder:
    ====
    Interface Builder encountered an internal logic error. Choose "Continue" to continue running Interface Builder in an inconsistent state. Choose "Crash" to halt Interface Builder and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.
    ====
    Selecting (Show Details) I get:
    ====
    Assertion Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    IBUIViewImageRequester failed to rasterize a UILabel, UIButton, UITextField, and UISegmentedControl.
    Exception name: NSInternalInconsistencyException
    Exception reason: [NOTE: this exception originated in the server.]
    Invalid parameter not satisfying: font != nil
    Exception backtrace:
    0. CoreFoundation 0x30279dfb [NSException initWithName:reason:userInfo:]
    1. libobjc.A.dylib 0x92750e3b objcexceptionthrow
    2. CoreFoundation 0x3028e5fb CFReadStreamGetBuffer
    3. Foundation 0x305b0594 [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
    4. UIKit 0x309fe074 [UILabel setFont:]
    5. UIKit 0x309fec08 [UILabel _commonInit]
    6. UIKit 0x309fd13c [UILabel initWithFrame:]
    7. Interface Builder Cocoa Touch Tool 0x00008655 [UIView initWithMarshalledValues:orderedKeys:marshallerClassNames:andMarshallerInstanti ationContexts:globalMarshallingContext:]
    8. Interface Builder Cocoa Touch Tool 0x0000b307 [IBCocoaTouchToolObjectPackage dealloc]
    9. Interface Builder Cocoa Touch Tool 0x0000b80f [IBCocoaTouchToolObjectPackage initWithData:]
    10. Interface Builder Cocoa Touch Tool 0x0000a5a1 [IBCocoaTouchToolObjectPackage dealloc]
    11. Interface Builder Cocoa Touch Tool 0x00002c74 [IBCocoaTouchTool produceImageForRequest:]
    12. Interface Builder Cocoa Touch Tool 0x00002445 [IBCocoaTouchTool produceImagesForRequests:]
    13. CoreFoundation 0x3024a10d CF_forwarding_prep0
    14. CoreFoundation 0x30249ff8 [NSInvocation invoke]
    15. CoreFoundation 0x3026eaf8 [NSInvocation invokeWithTarget:]
    16. CoreFoundation 0x3026e094 [NSDate initWithTimeIntervalSinceNow:]
    17. CoreFoundation 0x3024a0a2 CF_forwarding_prep0
    18. CoreFoundation 0x3024a10d CF_forwarding_prep0
    19. CoreFoundation 0x30249ff8 [NSInvocation invoke]
    20. Foundation 0x3053e15d [NSConnection dispatchInvocation:]
    21. Foundation 0x3053c307 [NSConnection handleRequest:sequence:]
    22. Foundation 0x3053ba13 [NSConnection handlePortCoder:]
    23. Foundation 0x3053b5be [NSConcretePortCoder dispatch]
    24. Foundation 0x3053ae33 [NSDOStreamData bytes]
    25. CoreFoundation 0x30246e79 CFRunLoopRemoveObserver
    26. CoreFoundation 0x30245560 CFRunLoopRunSpecific
    27. CoreFoundation 0x30244628 CFRunLoopRunInMode
    28. Foundation 0x30535525 [NSRunLoop runMode:beforeDate:]
    29. Interface Builder Cocoa Touch Tool 0x000020af [IBCocoaTouchTool startServingForPortName:]
    30. Interface Builder Cocoa Touch Tool 0x00002e77 [IBCocoaTouchTool produceImageForRequest:]
    Exception info:{
    Backtrace:
    0. Interface Builder 0x00004d29 [IBApplication handleAssertion:inFile:onLine:]
    1. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    2. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    3. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    4. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    5. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    6. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    7. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    8. AppKit 0x906e4d0d _DPSNextEvent
    9. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    10. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    11. AppKit 0x9092192b [NSApplication _realDoModalLoop:peek:]
    12. AppKit 0x9091c069 [NSApplication runModalForWindow:]
    13. InterfaceBuilderKit 0x00382511 [IBDetailedAlert runModal]
    14. Interface Builder 0x00004dd6 [IBApplication handleAssertion:inFile:onLine:]
    15. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    16. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    17. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    18. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    19. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    20. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    21. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    22. AppKit 0x906e4d0d _DPSNextEvent
    23. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    24. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    25. AppKit 0x9092192b [NSApplication _realDoModalLoop:peek:]
    26. AppKit 0x9091c069 [NSApplication runModalForWindow:]
    27. InterfaceBuilderKit 0x00382511 [IBDetailedAlert runModal]
    28. Interface Builder 0x00004dd6 [IBApplication handleAssertion:inFile:onLine:]
    29. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    30. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    31. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    32. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    33. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    34. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    35. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    36. AppKit 0x906e4d0d _DPSNextEvent
    37. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    38. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    39. AppKit 0x9092192b [NSApplication _realDoModalLoop:peek:]
    40. AppKit 0x9091c069 [NSApplication runModalForWindow:]
    41. InterfaceBuilderKit 0x00382511 [IBDetailedAlert runModal]
    42. Interface Builder 0x00004dd6 [IBApplication handleAssertion:inFile:onLine:]
    43. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    44. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    45. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    46. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    47. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    48. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    49. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    50. AppKit 0x906e4d0d _DPSNextEvent
    51. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    52. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    53. AppKit 0x906dd5fb [NSApplication run]
    54. AppKit 0x906aa834 NSApplicationMain
    55. Interface Builder 0x00004eca [IBApplication changeInspectorMode:]
    ====
    If I press (Continue) and then try to create any fields which need text, such as a label or button, I get the exact same alert window, and nothing "appears to work" as far as getting past this.
    Some background...
    I have no problems like this on my PPC development platform, just on my Intel-based system.
    Configuration:
    Intel hardware, 1.6 Ghz, 2GB, Mac OS/X 10.5.7
    Originally I installed the the devtools from: xcode3122621developerdvd.dmg
    and the 2.0 or 2.1 iPhone SDK, but never used Interface Builder (long story)
    When the final SDK for 3.0 came out, I installed that from:
    iphonesdk_3.0_leopard_9m2736final.dmg
    A few days ago, I said, OK, enough reading, I'm ready to start on my application, and fired up Xcode, created a new project and double-clicked on the .xib file to build my interface.
    That's when I first saw this problem... and now I'm stuck.
    What I've done since...
    #1) Deleted prefs for Interface Builder (ibtool), and XCode
    retried... same error
    #2) wiped /developer clean and resinsatlled from iphonesdk_3.0_leopard_9m2736final.dmg
    retried... same error
    retried #1, retried, same error
    #3) ran /Volumes/Olórin/Developer/Library/uninstall-devtools --mode=all
    rebooted
    checked international to make sure US/English was selected
    repaired disk permissions
    rebooted
    verified, no prefs files in ~/Library/Preferences or /Library/Preferences
    retried... same error
    HELP!!!

    ! ! ! - O M G - ! ! !
    {quote:title=reststop wrote:}
    #3) ran /Volumes/Olórin/Developer/Library/uninstall-devtools --mode=all
    {quote}
    I was about to post a reply which included the entire crash log for details... and saw this line:
    7/21/09 12:44:16 AM [0x0-0x28028].com.apple.InterfaceBuilder3[269] Couldn't read font cache (file://localhost/Volumes/Olo%C3%83%C3%85rin/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0. sdk/System/Library/.lilid/.lili).
    The file is there, so why can't it read it... uh oh, not exactly
    ... I typed /Olórin/ not /Olo%C3%83%C3%83rin/
    Apparently somewhere internal to Interface Builder, when it translates characters, it does it TWICE,
    so instead of 'ó' (that's 'option-e o', we have 'o%C3%83%C3%83' which may have worked if it had
    only been '%C3%83', without the extra o, or the extra %C3%83.
    I am so glad I found this, but I'm furious at Apple for making me rebuild my development system 3 times!
    ...someone really needs to do better QA on a product used by so many users.
    I changed the name of my disk from Olórin to Olorin and Interface Builder works fine!
    The PROBLEM all along was the name of my development disk ! ! !
    Someone at Apple, please NOTE!
    Someone please tell me how to report this, and maybe get Apple to hire me even if just for better QA!
    -Carl

  • Web Interface Builder - chancing the size of a GROUP-Component

    Hi!
    i have created a GROUP-Component (Group1) via the Web Interface Builder and would like to change the standard width from 350 to 200. I understand that this must be done via css. The relevant code in my BSP-page looks like this:
    <table border="0" cellpadding="0" cellspacing="0" cols="1" id="Group1" ct="Tray" class="urTrcWhlBox" style="width:350;">
    I checked the stylesheet (ur_ie6.css) via SE80, but i cannot find the postion where i need to change the width-attribute. The class definition inside this stylesheet looks like this:
    .urTrcWhlBox
    Any hints where to implement the change are welcome.
    Thanks,
    Holger

    Hi Jürgen,
    i changed the BSP-page like this:
    %>
    <%
    and it works...but this solution is not very suitable, because i have about 30 BSP-pages and every time i re-generate them i have to add the code again.
    When i overwrite the table tag in my stylesheet..like this:
    table
    the tray is smaller...but when i expand the tray in internet explorer the dropdown list is still 350px. Also the HTML-code remains with style="width:350;"
    Using .urTrcWhlBox instead of the table tag in my stylesheet has no effect.
    Regards,
    Holger

  • Create an Xcode / Interface Builder Application Written In AppleScript

    Hi.
    I've got what's probably a stupid and easy question.
    I have some AppleScript programs that I'd like to create custom interfaces for.
    I've read about AppleScript Studio.
    I've read that to create an Xcode project written in AppleScript, you can just select 'AppleScript Application' from the New Project window.
    However, the New Project window that I get looks entirely different (newer) and the closest thing that I can find is 'Cocoa-AppleScript application', which doesn't work.
    So, is there a way for me to use Interface Builder and Xcode with my AppleScript programs, short of learning Objective-C and converting everything?
    I'm using 10.6.2, Xcode & Interface Builder 3.2.1.
    Thanks in advance!

    You don't really need to know Objective-C, although it does help a bit with understanding the examples and code snippets in the Cocoa documentation. See my reply to your other topic.

Maybe you are looking for

  • Select on MARA resulting into # values in internal table for one field

    Hi Team, I have written a SELECT statement on MARA table as below. TRY.         SELECT matnr zzwftag FROM mara CLIENT SPECIFIED           INTO CORRESPONDING FIELDS OF TABLE gt_mara WHERE           mandt = sy-mandt AND           zzwftag NE space      

  • How do I add a new email account?

    I installed Thunderbird today and have no email accounts set up yet. That is because by following the instructions in the help files, I was lead straight into a brick wall. I can't find a way to insert a screenshot of the help page. It says to: First

  • Help on drawing in GUI

    Attached is the file that i need to draw on the GUI. Anyone can tell me how to code it? Each ring distance is 5km away from one another. Maximum is 20km. If i want to have a "cross" on 9 O'clock at distance 15km on it, how should i do it? Thanks in a

  • 6310i car kit

    Hi Am just in the process of swapping cars and would like to take my car kit with me - the current car is being scrapped so can pull out the wires if needs be. Love my 6310 and refuse to go to Bluetooth so if anyone has any ideas about where I can ge

  • Once i've downloaded endnote plug-in where do I find it in pages?

    I'm just trying to create a simple bibliography and am having a **** of a time finding where to do it.    It says you have to use endnote plug-in which I've recently downloaded but how does it all connect??  I'm a new Mac user if you can't tell.