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.

Similar Messages

  • Interface Builder ( IB ) font bug?

    I noticed in ib, if i choose arial and then bold face (for labels, titles etc) it displays the text properly and is the proper bold. but when i deploy the app the text is gone, what i find wierd is in ib if you choose fonts that are not on iphone the text itself looks like it is the default font (eg. it doesnt let you use none iphone fonts)
    so is this a bug with arial bold only?
    i also tried to choose regular arial and then on the interface builder top menu i choose font >> bold and it turns the text bold, and it still doesnt display when compiled..
    It makes no sense to me to have ib to do interface stuff when something like simple font choosing is buggy and/or not properly supported.

    Human interface guidelines mandating a certain degree of consistency in appearance make a lot of sense, as would the fact that you cannot use fonts which are not available on the target system.
    Arial is a horrible ripoff of Helvetica anyway.

  • Web Interface Builder+BPS+BSP

    Hi All
    I need some online study material for Web Interface builder(BPS_WB transaction).
    I have to design a interface for the Planning .can any one send me some link
    or PDF's for the same .
    I need documents for web Interface Tool(Builder) BPS and BSP
    If any step by step discription is there then i will be thankful
    My mail id is [email protected]
    Regards'
    Saurabh

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    Please check out the following URL:<Br>
    <U>http://help.sap.com/saphelp_sem40bw/helpdata/EN/c4/b2af6569e64418a21bd0ab4d83be83/frameset.htm</U>
    <Br>Hope it helps.
    <Br>
    Cheers
    Abhijit<Br>* It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you</FONT>

  • Interface builder freeze on compilation

    I have never been able to get iPhone applications compiling on my Macbook Air.. Now I decided that I want to find out why.. So I have spent the most of the day trying some of the fixes suggested on the net. But nothing works.
    I am trying to compile "WhichWayIsUp" demo, but once the .xib file starts compiling the process just hangs there.
    Also if I try to open the .xib in Interface builder, interface builder gives me the spinning ball
    I hope that some of you experts out there can help me out?
    My crash log looks like this:
    Process: Interface Builder Cocoa Touch Tool [1065]
    Path: /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Interface Builder/Plug-ins/IBCocoaTouchPlugin.ibplugin/Contents/Resources/Interface Builder Cocoa Touch Tool
    Identifier: Interface Builder Cocoa Touch Tool
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: ibtool [1064]
    Date/Time: 2009-03-22 18:46:46.399 +0100
    OS Version: Mac OS X 10.5.6 (9G55)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: 0x000000000000000d, 0x0000000000000000
    Crashed Thread: 0
    Thread 0 Crashed:
    0 dyld 0x8fe18c02 misalignedstackerror + 0
    1 libstdc++.6.dylib 0x0023c3e3 std::Rb_tree_insert_andrebalance(bool, std::Rb_tree_nodebase*, std::Rb_tree_nodebase*, std::Rb_tree_nodebase&) + 243 (streambuf_iterator.h:174)
    2 libGLProgrammability.dylib 0x010100a2 PPParserGetErrorString + 3311330
    3 libGLProgrammability.dylib 0x01010169 PPParserGetErrorString + 3311529
    4 libGLProgrammability.dylib 0x0100f86f PPParserGetErrorString + 3309231
    5 libGLProgrammability.dylib 0x010939f3 0xa13000 + 6818291
    6 dyld 0x8fe12f36 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 246
    7 dyld 0x8fe0e7e3 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 307
    8 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    9 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    10 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    11 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    12 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    13 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    14 dyld 0x8fe0e775 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 197
    15 dyld 0x8fe0e8c9 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 57
    16 dyld 0x8fe04102 dyld::initializeMainExecutable() + 146
    17 dyld 0x8fe07bcf dyld::main(machheader const*, unsigned long, int, char const**, char const**, char const**) + 3087
    18 dyld 0x8fe01872 dyldbootstrap::start(mach_header const*, int, char const**, long) + 818
    19 dyld 0x8fe01037 dyldstart + 39
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x002ca95b ebx: 0x0100f84b ecx: 0x00000000 edx: 0x01102758
    edi: 0x01102780 esi: 0x011027a0 ebp: 0xbfffdb5c esp: 0xbfffdaf4
    ss: 0x0000001f efl: 0x00010286 eip: 0x8fe18c02 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x0023c2f0
    Binary Images:
    0x1000 - 0xfff2 +Interface Builder Cocoa Touch Tool ??? (???) <22d58cef925ccc34c54ff34bc47e973b> /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Interface Builder/Plug-ins/IBCocoaTouchPlugin.ibplugin/Contents/Resources/Interface Builder Cocoa Touch Tool
    0x18000 - 0x1fffd +libgcc_s.1.dylib ??? (???) /usr/local/lib/libgcc_s.1.dylib
    0x3f000 - 0x6bfff com.apple.SystemConfiguration 1.9.5 (1.9.5) <12ef2c263a3958046a4cfd0ab49a95f3> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/System Configuration
    0x85000 - 0x88ffc +libGFXShared.dylib ??? (???) <2acf8511245e6393dbc7a8107d263584> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
    0xa7000 - 0xcbfff +libxslt.1.dylib ??? (???) <ec3ae0462040d333effa987384d1b538> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/usr/lib/libxslt.1.dylib
    0x112000 - 0x1f3ff7 +libxml2.2.dylib ??? (???) <18f014ed14a8281eedb11b16dbcb2313> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/usr/lib/libxml2.2.dylib
    0x224000 - 0x2b4fe5 libstdc+.6.dylib ??? (???) /usr/local/lib/libstdc++.6.dylib
    0x735000 - 0x770ff9 +libGLImage.dylib ??? (???) <69d908a44ab97e1913cb0b20ab5b99e8> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
    0x856000 - 0x8c7ff1 +WebKit ??? (???) <d2434c38b3802120b0e0ebcc2f283838> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/WebKit.framework/WebKit
    0x92b000 - 0x9a7feb com.apple.audio.CoreAudio 3.2.0 (3.2) <53fe4cee1a8175ea9644c845bb98456d> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0xa00000 - 0xa0aff3 +CoreVideo ??? (???) <327d75ff103c5aeaeeceec2aa0a8e49c> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/CoreVideo.framework/CoreVideo
    0xa13000 - 0x1098f32 +libGLProgrammability.dylib ??? (???) <9046d2abbaec066c06040423e27b6915> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
    0x30875000 - 0x30887fff +AppSupport ??? (???) <bef8b343070b5329c2f530d4218aad89> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
    0x30a45000 - 0x30ca8fe6 +UIKit ??? (???) <f4c65f1861a5a6daeaebde942e77b55e> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/UIKit.framework/UIKit
    0x30ff3000 - 0x311f8fff com.apple.CoreGraphics 1.359.13 (???) <abf63e270c1801e02fb6954ab6cf5e82> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
    0x31270000 - 0x31285fff +OpenGLES ??? (???) <27b097ed65d3da5eaa09fa8ddfbf0c77> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/OpenGLES.framework/OpenGLES
    0x312b2000 - 0x31375ff3 +JavaScriptCore ??? (???) <2c056913644b3a5dc4993cd51837dab0> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
    0x31562000 - 0x3156bffd +GraphicsServices ??? (???) <719d0400bacbca45f43f1568285b4c57> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServi ces
    0x315d7000 - 0x31692ff7 +ImageIO ??? (???) <0889c4b9b2273a815bcb82b08dbf4977> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/ImageIO.framework/ImageIO
    0x31ad4000 - 0x31aecfff +AddressBook ??? (???) <6c8f6e0977ea207a4befa61ba1330f68> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/AddressBook.framework/AddressBook
    0x31dcb000 - 0x31e3ffef +QuartzCore ??? (???) <06cf7e879bfb27a7b5ce0f6c49755c12> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/QuartzCore.framework/QuartzCore
    0x325ec000 - 0x32be4fff +WebCore ??? (???) <c5060b1d50c2716c8043b96ec31002b5> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/WebCore.framework/WebCore
    0x33d10000 - 0x33d18ffc +SpringBoardServices ??? (???) <62eed9174adb76974fef4361af5dea2e> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoar dServices
    0x34882000 - 0x3499efef +AudioToolbox ??? (???) <6d0ef663642ce3dfeb93e221a05cd3dc> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
    0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <100d362e03410f181a34e04e94189ae5> /usr/lib/dyld
    0x902fd000 - 0x9030bffd libz.1.dylib ??? (???) <545ca09467025f77131cfac09d8b9375> /usr/lib/libz.1.dylib
    0x9034c000 - 0x9051aff3 com.apple.security 5.0.4 (34102) <55dda7486df4e8e1d61505be16f83a1c> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x90604000 - 0x90604ffa com.apple.CoreServices 32 (32) <2760719f7a81e8c2bdfd15b0939abc29> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x90919000 - 0x90a51ff7 libicucore.A.dylib ??? (???) <18098dcf431603fe47ee027a60006c85> /usr/lib/libicucore.A.dylib
    0x90a91000 - 0x90b10ff5 com.apple.SearchKit 1.2.1 (1.2.1) <3140a605db2abf56b237fa156a08b28b> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x90c4d000 - 0x90c96fef com.apple.Metadata 10.5.2 (398.25) <e0572f20350523116f23000676122a8d> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x90ca1000 - 0x90cccfe7 libauto.dylib ??? (???) <42d8422dc23a18071869fdf7b5d8fab5> /usr/lib/libauto.dylib
    0x919f9000 - 0x91a28fe3 com.apple.AE 402.3 (402.3) <4cb9ef65cf116d6dd424f0ce98c2d015> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x91ad6000 - 0x91aecfff com.apple.DictionaryServices 1.0.0 (1.0.0) <7e9ff586b5c9d02b09e2a5527d98524f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x92d5f000 - 0x92de6ff7 libsqlite3.0.dylib ??? (???) <6978bbcca4277d6ae9f042beff643f7d> /usr/lib/libsqlite3.0.dylib
    0x944b1000 - 0x945e4fff com.apple.CoreFoundation 6.5.5 (476.17) <4a70c8dbb582118e31412c53dc1f407f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x947b0000 - 0x9486afe3 com.apple.CoreServices.OSServices 226.5 (226.5) <2a135d4fb16f4954290f7b72b4111aa3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x94927000 - 0x94a8eff3 libSystem.B.dylib ??? (???) <d68880dfb1f8becdbdac6928db1510fb> /usr/lib/libSystem.B.dylib
    0x94c8e000 - 0x94c95ffe libbsm.dylib ??? (???) <5582985a86ea36504cca31788bccf963> /usr/lib/libbsm.dylib
    0x94c96000 - 0x94f11fe7 com.apple.Foundation 6.5.7 (677.22) <8fe77b5d15ecdae1240b4cb604fc6d0b> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x953b9000 - 0x95444fff com.apple.framework.IOKit 1.5.1 (???) <f9f5f0d070e197a832d86751e1d44545> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x95d43000 - 0x95d4bfff com.apple.DiskArbitration 2.2.1 (2.2.1) <75b0c8d8940a8a27816961dddcac8e0f> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x95dce000 - 0x95eaefff libobjc.A.dylib ??? (???) <7b92613fdf804fd9a0a3733a0674c30b> /usr/lib/libobjc.A.dylib
    0x9610c000 - 0x96198ff7 com.apple.LaunchServices 290.3 (290.3) <6f9629f4ed1ba3bb313548e6838b2888> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x96704000 - 0x969deff3 com.apple.CoreServices.CarbonCore 786.11 (786.11) <f06fe5d92d56ac5aa52d1ba182745924> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x96b5c000 - 0x96bf9fe4 com.apple.CFNetwork 422.15.2 (422.15.2) <80851410a5592b7c3b149b2ff849bcc1> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x97290000 - 0x97294fff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0xfffe8000 - 0xfffebfff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib

    The general approach at this time is to ask if you've checked for any problematic fonts (all languages) with Apple's Font Book (look in the Applications folder). Find and remove all duplicates also.
    Start there to be sure all fonts that are in play come out with a clean bill of health.
    Don't hesisate to perform wholesale deletion of old and/or little used fonts - be skeptical of anything that has come from Office 2008, including those related to an Equation Editor installation.
    By all means be sure any 3rd party apps are Snow Leopard compatible.
    You can help to focus the problem by creating another user account named testUser and seeing if the problem still occurs there - this will help to identify if the issue is particular to your original account or system wide.
    You can try deleting these plist files (~yourUserName/Library/Preferences):
    • com.apple.InterfaceBuilder3.LSSharedFileList.plist
    • com.apple.InterfaceBuilder3.plist
    If you still have issues, consider asking again on the developer forums...
    http://discussions.apple.com/forum.jspa?forumID=727&start=0
    Good luck in any case.

  • 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

  • After upgrading to Mountain Lion, Interface builder starts up with an error every boot.

    I've got a late 2008 Macbook Unibody 13", and a few months back I upgraded from Snow Leopard to Mountain Lion.  Ever since the upgrade, at every boot up Interface Builder starts up with an error.  I've just ignored it mostly, but now I'm getting annoyed with it.  How can I find the programs that start up every boot to research this, or stop it from loading Interface Builder every time?

    You have to delete it using the minus sign at the bottom. The check/un-check is for hiding items.

  • Load Class in Interface Builder 3

    Hello,
    i am trying to get started with Cocoa after having worked a while with Xcode & smaller AppleScript based projects.
    As my idea was to create a menubar-based (NSStatusItem) service app for myself i started with this tutorial:
    http://files.semaja2.net/NSStatusItem%20-%20ObjC.html
    Unfortunaly it seems like there was a change in Interface Builder regarding loading Classes from Version 2 to IB version 3
    The tutorial tells me to (about the middle of the tutorial):
    Rename the “NSMenu1” to “StatusItem”, following this in “Interface Builder” >>choose from the menu “Classes > Read Files..” now select the AppController.h >>file, Once the file has been read it should change out project view to “Classes” >>from here find the AppController item and right click on it and select >>“Instantiate AppController”:
    I was able to follow the tutorial until there without problems but it looks like the Classes-Tab is gone in IB 3.x.
    So i feel somehow unable to finish this small tutorial.
    how would i do this step in Interface Builder 3.x ?
    Any help is heavily appreciated.
    Best regards
    fidel

    fidel-castro wrote:
    I was able to follow the tutorial until there without problems but it looks like the Classes-Tab is gone in IB 3.x.
    So i feel somehow unable to finish this small tutorial.
    how would i do this step in Interface Builder 3.x ?
    You're right, this has changed. I'm currently using IB 3.1.1 but I believe the changes appeared in IB 3.
    Once you've done the "Read class files" and selected your AppController.h file IB should know about your class.
    In order to instantiate your AppController in IB first go to the Library window and find the "NSObject" (it will appear as a blue cube). Drag one of these NSObject's from the Library window and drop it into your MainMenu.xib window along with the other icons that appear there (File's Owner, First Responder, Application... etc).
    Now you will have created an instance of an NSObject in your MainMenu.xib file. And, since your AppController class is a subclass of NSObject (and IB knows this since you've had it read in your AppController.h file) you can now change this NSObject instance into an instance of your AppController.
    Select the NSObject icon in the MainMenu.xib window then go to IB's Inspector window and click on the next to last icon in the top tool bar. This should change the Inspector window's title bar to say "Object Identity" and the Class Identity in the first text field should be set to NSObject. You should be able to type "AppController" into this field (or click the popup and it should show up in the popup list. Once you've done this it will transform the NSObject instance into an AppController instance.
    You'll see another slight difference between IB 3.x and the tutorial when you do the <Control>-Drag between items to connect up the outlets and actions. Instead of finalizing the connections in the Inspector window like the tutorial says you'll get a small popup window right next to the item you're connecting to that will list the available outlets/actions you can connect to. Simply click the one you want. You can still double-check your connections in the inspector window though.
    Steve

  • Looking for simple sample of iphone apps without using Interface Builder

    I successfully went through the 'iphone app tutorial' and used Interface Builder, but now want to try creating apps without it.
    The UI Catalog sample is too complex, but didn't see anything that just had a view and a button or label.
    Ideally I want code that doesn't require any IB usage, but I can't tell if that is possible yet...
    Anyone have a link to an easy sample?
    Or has anyone created a test app themselves and wouldn't mind posting?
    I took a stab at creating one and posted it on the "101" forum, but it would be hard for somebody to try and figure out what I was attempting
    Thx for any links/___sbsstatic___/migration-images/migration-img-not-avail.png
    ps
    I really need a good book, especially "cookbook" style

    hey dear
    I have one solution of your problem
    just go to in iphone developer search for FAQ
    In faq their is one section how to use prohramming in this you can see
    the how to ceate label,button etc.
    after that simply add the view or remove theview.

  • 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.

  • Xcode 4.2.1 crashes when using a QCView in Interface Builder

    Hi, I have been trying to use a QCView in one of my projects but I get a crash everytime. I tried loading the QuartzComposerChart sample application but if I compile the project I get a crash, it just seems to crash when it wants to but I was able to get it compiled if I didn't click on the .nib file. It seems to be related to interface builder anyway.
    Adding a QCView to a new project results in a .xib file not being able to be saved I get this error
    The document “MainMenu.xib” could not be autosaved. -[NSConcreteMapTable state]: unrecognized selector sent to instance 0x402d47420
    Heres my crash log:
    UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[NSKeyValueUndefinedSetter state]: unrecognized selector sent to instance 0x4026f43a0
    UserInfo: (null)
    Hints: None
    Backtrace:
      0  0x00007fff8963726a __exceptionPreprocess (in CoreFoundation)
      1  0x00007fff83bb2d5e objc_exception_throw (in libobjc.A.dylib)
      2  0x00007fff896c34ce -[NSObject doesNotRecognizeSelector:] (in CoreFoundation)
      3  0x00007fff89624133 ___forwarding___ (in CoreFoundation)
      4  0x00007fff89623f48 _CF_forwarding_prep_0 (in CoreFoundation)
      5  0x00007fff88c829b2 _PatchToComposition (in QuartzComposer)
      6  0x00007fff88c5bd47 -[QCPatchController encodeWithCoder:] (in QuartzComposer)
      7  0x00007fff8a60559d _encodeObject (in Foundation)
      8  0x00007fff8dc72814 -[NSNibConnector encodeWithCoder:] (in AppKit)
      9  0x00007fff8dc72599 -[NSNibBindingConnector encodeWithCoder:] (in AppKit)
    10  0x00007fff8a60559d _encodeObject (in Foundation)
    11  0x00007fff8a60678e -[NSKeyedArchiver _encodeArrayOfObjects:forKey:] (in Foundation)
    12  0x00007fff8a606e56 -[NSArray(NSArray) encodeWithCoder:] (in Foundation)
    13  0x00007fff8a60559d _encodeObject (in Foundation)
    14  0x00007fff8dbe5ab7 -[NSIBObjectData encodeWithCoder:] (in AppKit)
    15  0x00007fff8a60559d _encodeObject (in Foundation)
    16  0x000000010aaf0938 -[IBCocoaDocument compiledKeyedObjectsData:] (in IDEInterfaceBuilderCocoaIntegration)
    17  0x000000010aaf10e0 -[IBCocoaDocument fileWrapperOfType:error:] (in IDEInterfaceBuilderCocoaIntegration)
    18  0x00007fff8db59801 -[NSDocument writeToURL:ofType:error:] (in AppKit)
    19  0x000000010a681231 -[IBDocument writeToURL:ofType:error:] (in IDEInterfaceBuilderKit)
    20  0x00007fff8db58769 -[NSDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] (in AppKit)
    21  0x000000010a6846ff -[IBDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] (in IDEInterfaceBuilderKit)
    22  0x00007fff8db58b68 -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:forceTemporaryDirectory:error:] (in AppKit)
    23  0x00007fff8db4285d -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:error:] (in AppKit)
    24  0x00007fff8db58911 -[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:] (in AppKit)
    25  0x0000000107ad664a -[IDEEditorDocument writeSafelyToURL:ofType:forSaveOperation:error:] (in IDEKit)
    26  0x00007fff8db61ea7 __-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_8 (in AppKit)
    27  0x00007fff8db61327 __-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_14 (in AppKit)
    28  0x00007fff8db61c80 __-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_7 (in AppKit)
    29  0x00007fff8a7a5a8d -[NSFileCoordinator(NSPrivate) _invokeAccessor:orDont:thenRelinquishAccessClaimForID:] (in Foundation)
    30  0x00007fff8a7a8e65 -[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:] (in Foundation)
    31  0x00007fff8db5725c -[NSDocument _fileCoordinator:coordinateReadingContentsAndWritingItemAtURL:byAccessor:] (in AppKit)
    32  0x00007fff8db45702 __-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_1 (in AppKit)
    33  0x00007fff8db5ab75 -[NSDocument performAsynchronousFileAccessUsingBlock:] (in AppKit)
    34  0x00007fff8db453af -[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:] (in AppKit)
    35  0x0000000107b8b66b -[IDEEditorDocument saveToURL:ofType:forSaveOperation:completionHandler:] (in IDEKit)
    36  0x000000010a6811fd -[IBDocument saveToURL:ofType:forSaveOperation:completionHandler:] (in IDEInterfaceBuilderKit)
    37  0x00007fff8db46d40 __-[NSDocument autosaveWithImplicitCancellability:completionHandler:]_block_invoke_1 (in AppKit)
    38  0x00007fff8db40898 -[NSDocument continueFileAccessUsingBlock:] (in AppKit)
    39  0x0000000107b898db -[IDEEditorDocument continueFileAccessUsingBlock:] (in IDEKit)
    40  0x00007fff8db40cad __-[NSDocument performAsynchronousFileAccessUsingBlock:]_block_invoke_6 (in AppKit)
    41  0x00007fff8db71333 __-[NSDocumentController(NSInternal) _onMainThreadInvokeWorker:]_block_invoke_3 (in AppKit)
    42  0x00007fff882cc8ba _dispatch_call_block_and_release (in libdispatch.dylib)
    43  0x00007fff882ce72a _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
    44  0x00007fff895cc4dc __CFRunLoopRun (in CoreFoundation)
    45  0x00007fff895cbae6 CFRunLoopRunSpecific (in CoreFoundation)
    46  0x00007fff8c1283d3 RunCurrentEventLoopInMode (in HIToolbox)
    47  0x00007fff8c12f63d ReceiveNextEventCommon (in HIToolbox)
    48  0x00007fff8c12f4ca BlockUntilNextEventMatchingListInMode (in HIToolbox)
    49  0x00007fff8d7a23f1 _DPSNextEvent (in AppKit)
    50  0x00007fff8d7a1cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
    51  0x00007fff8d79e62d -[NSApplication run] (in AppKit)
    52  0x00007fff8da1d80c NSApplicationMain (in AppKit)
    53  0x0000000107165eec (in Xcode)
    54  0x0000000000000002
    This also happens when I try loading a composition into a QCView. Does anyone know how to fix this?
    Thanks
    Ed

    Glad you posted... I am getting similar messages in xcode 4.2.1
    The document “MainMenu.xib” could not be saved. -[DVTFileSystemVNode state]: unrecognized selector sent to instance 0x40540f920
    I didn't make the connection with QCView until I saw your post. I have several .xib in the project with QCViews and all of them have this same problem.  .xib files without QCViews in them are fine.
    However, my application does not crash, but runs fine. (The xib's and application were written with xcode 3.2, and I can't edit them now in 4.2.1, because I can't save them.  )
    Any other clues would be welcome.
    Thanks
    Keith

  • 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

  • Interface Builder Error: Could not read archive

    I created a new project in Xcode. I double click on MainWindow.xib and it opens up Interface Builder like it should, but then I get an error saying "Could not read archive". This happens every time with any project I have tried to start; please help.

    I' ve the same problem. And if I make a new interface and save it, after a new klick on MainWindow.xib there's tthe error saying too.
    Sorry for my bad Englisch, but I'm German.

  • Could Not Read Archive Interface Builder

    I made a new project in Xcode without tweaking any settings. When I go to open my mainwindow in interface builder I get an error saying Could Not Read Archive. Does anyone know whats going on. Please help as I can't work with my interface files

    I' ve the same problem. And if I make a new interface and save it, after a new klick on MainWindow.xib there's tthe error saying too.
    Sorry for my bad Englisch, but I'm German.

  • File's Owner does not show methods in Interface Builder 3.2.6 but the class is set correctly and the nib on the lower left is green

    Hi, I'm trying to make my first IPhone app. After having problems with interface builder the first time I coppied the code directly from a tutorial in case I made any mistakes. I saved the program, and re-opened the .xib file. Right clicking  File's Owner does not show a list of methods. I've been looking around for solutions for this but have not gotten anything to work. I tried deleting the default .xib and creating a new one through file-> new file. This did not help. I did notice that File's owner was showing up as a light blue cube apposed to a yellow one now and found that a bit odd but otherwise nothing changed. I opened the library menu and selected helloWorldiPhoneViewController so it would show up in the view port. I set the class field of File's Owner to hellowWorldiPhoneViewController. File's Owner still does not show methods when right clicked or when a line is dragged over a button. I read somewhere that the color of nib on the lower left of the viewport may indicate a problem, but it is green not indicating any issue. Every solution I found for someone else seems nto to work for me and I don't know how to continue.
    here is the .h file just in case:
    //  HelloWorldViewController.h
    //  HelloWorld
    //  Created by Paul Peelen on 2011-03-14.
    //  Copyright 2011 9697271014. All rights reserved.
    #import <UIKit/UIKit.h>
    @interface HelloWorldViewController : UIViewController {
            UILabel *textLabel;
    @property (nonatomic, retain) IBOutlet UILabel *textLabel;
    - (IBAction)changeTheTextOfTheLabel;
    @end
    I'm trying to connect changeTheTextOfTheLabel to a button and textLabel to a label

    You need a parameter for an interface builder method. The type should be id and the name is typically "sender". It would look like this:
    - (IBAction)changeTheTextOfTheLabel: (id) sender;
    Be careful about those tutorials. Many are ancient and do not correspond to current Xcode behaviour.

  • How to make a form for input in web interface builder

    Hi expert:
        How to make a form for input in web interface builder?I have already used it to do PS planning, but I don't know how to  draw lines and checkboxes . Thanks in advance.
    Allen

    WAD:
    Open the WAD and create a new template. On the left hand navigation you will have several Web Items available. Under 'Standard' you have 'Analysis' item. Pull that into your template to the right. Under the Properties tab you need to pick the query [form/layout] that you have built in Query Designer.
    You will also find other items such as Button group, Checkbox, drop down, list box etc available. Pick and drag into the template whatever it is you require. Lets say you want a button. Under the Properties tab select the 'Command' that you require. You could use standard commands that are available there. You could also define functions and commands that you require.
    Query Designer:
    Open the QD and drag the characteristics and key figures that you require into the rows and columns of the QD. You would need to specify restrictions under the Filter tab of the QD based on the granularity of data that you require. You would need to remember that the key figures need to be made Input Ready [do this by clicking on KF and on the planning tab select "change by user and planning functions"].
    This shouldgive you a start. After you've explored it yourself a bit we can discuss further and I can certainly provide you additional details/material on these areas.
    Srikant

Maybe you are looking for

  • Conventions for XML-files

    Hi! I'm working on the text of a Bible translation that will be quite an extensive file when it's finished. The publisher has requested that I make an XML file in addition to the print-ready inDesign files they will use themselves. This is because th

  • XSLT, LIBXSLT, and func:script

    My understanding is libxslt supports calling javascript from inside XSLT using the extension func:script. Does any version of Sarfari support this feature of libxslt? I am attempting to get the browser url inside XSLT as part of the transformation of

  • 10 Digits DialPlan Design

    Hello All, My company is migrating from a dianplan of 4 digits to 10 digits. The idea is to keep the calls intra-site with 4 digits and calls inter-site with 10 digits. The question is do I change the extensions numbers on CUCM to 10 digits and add a

  • XMP import in 3.02

    I have noticed that 3.02 imports data from XMP including (star) ratings. I imported few files as duplicates and finally they come in with star ratings which is brilliant, but I hope I don't have to re-import the lot...

  • How to stop prompts in Dreamweaver CS3?

    Hello, I am using Dreamweaver CS3 with Windows XP. I want to stop Dreamweaver from prompting me everytime I use the image hotspot feature. I have a ton of hotspots I need to place and I don't like the extra step of clicking that prompt off. I have se