Interface builder NSSplitView general guidance

Hi all,
Just working on an OSX Cocoa Document Based Core Data app. I'm trying to decide how I should be working with IB - i.e. the extent to which I setup the layout in there, as opposed to driving it from XCode.
At a high level the basic screen layout isn't far away from iTunes. At the moment I have two split views - one horizontal with the lower locked down to provide a footer control bar for my app. In the upper half of the split view, I've then added another (this time vertical) split view to provide for the custom outline view I've built on the left and the main event on the right hand side. Not sure why, but it just feels like I'm doing this wrong. For instance, have I just layered another split view over the lower split view (it certainly doesn't seem to be nested) - should I just build a custom view at the bottom to facilitate the bottom toolbar etc? The main event is likely to require a horizontal split and various custom views within it so the main question is...from an IB POV should it just be insanely simple ie a vertical split view in the top 90% of the screen and a single view across the bottom with all of the nitty gritty then populated by work in xcode?
Sorry if this question is inane or garbled - thanks for taking the time to read it. I come from the world of windows and for me the whole Cocoa thing feels like being an 8 yr old in a sweet shop with a pocket full of money.
Thanks,
Chris

Any time someone surfaces with questions about 'general guidance' in terms of layouts, especially when they're coming over from a Windows environment, I'm reminded of the right way/right thing method of heuristics.
The bottom line is that this is all centered on the user...not the datasource, not the designer, not the tools, not the OS.
Put the user first and the rest will fall in place. If you haven't done so already, it will be time well spent to review Apple's HIGs.

Similar Messages

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

  • Creating an attribute editor like panel from Interface Builder

    The Attributes Inspector from Interface Builder presents the user with a great set of options that are neatly organized in folding panels. I really want to do something like this for a project I'm working on to help organize a large set of options that I plan on presenting to the end user.
    Only problem is I have no idea what this widget is called or even if its available from Cocoa. I thought it was a NSRuleEditor but I've seen no examples so I'm not sure. So if someone could help point me in the right direction that would be awesome. If you know of an example project in the Examples folder that would be even better. Thanks a lot.

    The IB toolpanel is just built out of stock IB parts but there are quite a few of them. As far as I can tell it's just an NSPanel with a toolbar at the top and then at least one NSSplitView with an NSScrollView inserted into it.
    To add something like this to your project - although I would recommend starting simpler for learning - simply drag an NSPanel into your IB window and then drag an NSScrollView on top of it and it will fill the NSPanel and you can modify it from there. You can also drag an NSScrollView directly into your nib and work on it and then drop it on the NSPanel if you want. This might make the process easier/more clear for you. If you put an NSTextView into the window it will automatically show and hide scrollbars depending on content unless you tell it otherwise.
    Custom views can be confusing but since NSPanels can be made to show themselves as soon as a program launches (I think this is their default state) your content should show up automatically which makes it easier than creating regular windows and then worrying about showing their contents.
    Do this help?
    =Tod

  • [HELP] * The application Interface Builder quit unexpectedly

    Process: Interface Builder [533]
    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 [113]
    Date/Time: 2009-05-03 08:36:21.061 -0700
    OS Version: Mac OS X 10.5.6 (9G55)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000008
    Crashed Thread: 0
    Thread 0 Crashed:
    0 ??? 0x1f420636 0 + 524420662
    1 ??? 0x1f3e5a18 0 + 524179992
    2 ??? 0x1f3e70fe 0 + 524185854
    3 ??? 0x1f3c2276 0 + 524034678
    4 ??? 0x1f20d05d 0 + 522244189
    5 ??? 0x05325948 0 + 87185736
    6 ??? 0x0532523e 0 + 87183934
    7 ??? 0x00caece7 0 + 13298919
    8 ??? 0x05e85023 0 + 99110947
    9 ??? 0x05e84135 0 + 99107125
    10 ??? 0x05e50997 0 + 98896279
    11 ??? 0x05e51aaa 0 + 98900650
    12 ??? 0x017ea580 0 + 25077120
    13 ??? 0x017ec00d 0 + 25083917
    14 ??? 0x017ec489 0 + 25085065
    15 ??? 0x017ea580 0 + 25077120
    16 ??? 0x017e9ef5 0 + 25075445
    17 ??? 0x00aa4ef1 0 + 11161329
    18 ??? 0x00aa63a4 0 + 11166628
    19 ??? 0x017ea580 0 + 25077120
    20 ??? 0x017e9ef5 0 + 25075445
    21 ??? 0x00aa6080 0 + 11165824
    22 ??? 0x00aa4e16 0 + 11161110
    23 ??? 0x002660e4 0 + 2515172
    24 ??? 0x017ea580 0 + 25077120
    25 ??? 0x017e9ef5 0 + 25075445
    26 ??? 0x00a9f1ba 0 + 11137466
    27 ??? 0x00aa3cbb 0 + 11156667
    28 ??? 0x017ea580 0 + 25077120
    29 ??? 0x017ec00d 0 + 25083917
    30 ??? 0x017ec489 0 + 25085065
    31 ??? 0x017ea580 0 + 25077120
    32 ??? 0x017e9ef5 0 + 25075445
    33 ??? 0x00a9e042 0 + 11132994
    34 ??? 0x017ea580 0 + 25077120
    35 ??? 0x017e9ef5 0 + 25075445
    36 ??? 0x00a9d61d 0 + 11130397
    37 ??? 0x00a9cfe8 0 + 11128808
    38 ??? 0x00c84455 0 + 13124693
    39 ??? 0x0035345c 0 + 3486812
    40 ??? 0x00265d58 0 + 2514264
    41 ??? 0x0026599e 0 + 2513310
    42 ??? 0x0026514e 0 + 2511182
    43 ??? 0x0026489f 0 + 2508959
    44 ??? 0x0026b5e3 0 + 2536931
    45 ??? 0x0026b519 0 + 2536729
    46 ??? 0x000023db 0 + 9179
    47 ??? 0x00acf3a3 0 + 11334563
    48 ??? 0x00a9c8a4 0 + 11126948
    49 ??? 0x00004eca 0 + 20170
    Thread 1:
    0 ??? 0x005241c6 0 + 5390790
    1 ??? 0x0052b9bc 0 + 5421500
    2 ??? 0x008de0ae 0 + 9298094
    3 ??? 0x008decd8 0 + 9301208
    4 ??? 0x030a05dc 0 + 50988508
    5 ??? 0x030a0464 0 + 50988132
    6 ??? 0x00555095 0 + 5591189
    7 ??? 0x00554f52 0 + 5590866
    Thread 2:
    0 ??? 0x00524226 0 + 5390886
    1 ??? 0x005561ef 0 + 5595631
    2 ??? 0x00557a73 0 + 5601907
    3 ??? 0x0182575c 0 + 25319260
    4 ??? 0x01825570 0 + 25318768
    5 ??? 0x018254d5 0 + 25318613
    6 ??? 0x1c4e21a2 0 + 474882466
    7 ??? 0x1c4e1959 0 + 474880345
    8 ??? 0x017df7ed 0 + 25032685
    9 ??? 0x017df394 0 + 25031572
    10 ??? 0x00555095 0 + 5591189
    11 ??? 0x00554f52 0 + 5590866
    Thread 3:
    0 ??? 0x00554906 0 + 5589254
    1 ??? 0x00555095 0 + 5591189
    2 ??? 0x00554f52 0 + 5590866
    Thread 4:
    0 ??? 0x005241c6 0 + 5390790
    1 ??? 0x0052b9bc 0 + 5421500
    2 ??? 0x008de0ae 0 + 9298094
    3 ??? 0x008decd8 0 + 9301208
    4 ??? 0x041a3052 0 + 68825170
    5 ??? 0x00555095 0 + 5591189
    6 ??? 0x00554f52 0 + 5590866
    Thread 5:
    0 ??? 0x005241c6 0 + 5390790
    1 ??? 0x0052b9bc 0 + 5421500
    2 ??? 0x008de0ae 0 + 9298094
    3 ??? 0x008ded34 0 + 9301300
    4 ??? 0x027d14c6 0 + 41751750
    5 ??? 0x017df7ed 0 + 25032685
    6 ??? 0x017df394 0 + 25031572
    7 ??? 0x00555095 0 + 5591189
    8 ??? 0x00554f52 0 + 5590866
    Thread 6:
    0 ??? 0x0052b3ae 0 + 5419950
    1 ??? 0x00555d0d 0 + 5594381
    2 ??? 0x0545bb32 0 + 88455986
    3 ??? 0x00555095 0 + 5591189
    4 ??? 0x00554f52 0 + 5590866
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x1f3e5a04 ecx: 0x00000012 edx: 0x00000000
    edi: 0xbfffd67c esi: 0x070f6be0 ebp: 0xbfffd578 esp: 0xbfffd578
    ss: 0x0000001f efl: 0x00010202 eip: 0x1f420636 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x00000008
    Binary Images:
    0x8fe00000 - 0x8fe298a3 dyld 0.0 (???) <d1092af4e89e77aa121dd5fb0c855cd9> /usr/lib/dyld
    console:
    5/3/09 8:36:25 AM [0x0-0x11011].com.apple.Xcode[206] Xcode(206,0xb0103000) malloc: free_garbage: garbage ptr = 0xa19e220, has non-zero refcount = 1
    5/3/09 8:37:36 AM [0x0-0x11011].com.apple.Xcode[206] Xcode(206,0xb0103000) malloc: free_garbage: garbage ptr = 0x9768920, has non-zero refcount = 1
    5/3/09 8:37:36 AM [0x0-0x11011].com.apple.Xcode[206] Xcode(206,0xb0103000) malloc: free_garbage: garbage ptr = 0x97e8790, has non-zero refcount = 1
    5/3/09 8:37:37 AM [0x0-0x65065].com.apple.InterfaceBuilder3[551] Couldn't open shared capabilities memory GSCapabilities (No such file or directory)
    5/3/09 8:37:38 AM com.apple.launchd[113] ([0x0-0x65065].com.apple.InterfaceBuilder3[551]) Exited abnormally: Bus error
    I try to fix it by http://discussions.apple.com/thread.jspa?threadID=1850735&tstart=0

    zoujinhe wrote:
    thanks.
    let me try this(Mac OS in home, I at office now).
    but CHESS had same problem, is my system problem?
    Ni Hao
    Take note of the permissions repairs and if those are extensive, it may indicate a general health issue. Repairing permissions should help if there are many files in need of repair. Try the repairs first - step-by-step.
    Be sure that your OS install is 'normal', meaning do not move and/or rename basic folders/directories created when the OS is first installed.
    Shouldn't you be on holiday?

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

  • Yet another cocoa without interface builder post

    I am sure its been brought up before. I would like to know if its possible to write Cocoa apps without Xcode, Interface Builder, or NIB files in general; another words, write Cocoa programs programmatically using ONLY Objective C. Before you ask me why I would want to do such a thing and that I am crazy, please hear me out.
    I come from a Win32 background, and my primary languages are C and C++. I am getting used to Objective C (though I wish I could use C++ to program in Cocoa). I picked up a copy of Cocoa(R) Programming for Mac(R) OS X (3rd Edition) by Aaron Hillegass, and have been trying to learn cocoa from it for the last few months. Basically, I am having big trouble wrapping my mind around cocoa via the very conceptual high level approach this book takes. I can not for the life of me begin to understand this whole making connections with interface builder.
    I do NOT plan to write production applications in cocoa by hand, but if I could just write a few trivial applications in cocoa by hand without interface builder or nib files, perhaps when I do use interface builder, I won't have such a hard time understanding whats going on.
    Thanks in advance for the help.

    __mikem wrote:
    I am sure its been brought up before.
    I don't care. Your question isn't about learning how to program and learning via the iPhone SDK. I'll do anything I can for you
    I would like to know if its possible to write Cocoa apps without Xcode, Interface Builder, or NIB files in general; another words, write Cocoa programs programmatically using ONLY Objective C.
    Certainly. You can write command-line Cocoa apps. Xcode is just an IDE like Visual Studio.
    Before you ask me why I would want to do such a thing and that I am crazy, please hear me out.
    I come from a Win32 background, and my primary languages are C and C++. I am getting used to Objective C (though I wish I could use C++ to program in Cocoa). I picked up a copy of Cocoa(R) Programming for Mac(R) OS X (3rd Edition) by Aaron Hillegass, and have been trying to learn cocoa from it for the last few months. Basically, I am having big trouble wrapping my mind around cocoa via the very conceptual high level approach this book takes. I can not for the life of me begin to understand this whole making connections with interface builder.
    You specifically asked to avoid the topic, but I'm sure there are several of us who are really tired of iPhone questions who would be happy to try our hand at explaining the User Interface architecture in Cocoa - if you want to try.
    I do NOT plan to write production applications in cocoa by hand, but if I could just write a few trivial applications in cocoa by hand without interface builder or nib files, perhaps when I do use interface builder, I won't have such a hard time understanding whats going on.
    You can write Objective-C programs using whatever editor and IDE/makefile you want. You can even work with all the non-UI parts of Cocoa to get a feel of how it works. Technically, you could write code using only Carbon and never use Objective-C, but that is really a dead-end.
    A good idea might be start looking at doing writing MacOS X kernel extensions. You should still use Xcode, but only as an IDE. The code would all be C++ (or a subset thereof) with no user interface or NIB files. Realistically, that is probably harder than learning Interface Builder, but it is probably the most productive path available to you for developing MacOS X and avoiding Interface Builder.

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

Maybe you are looking for

  • Issue in calling a web service from Apps instance

    Hi , I have created a procedure to call a function which gives response by calling a web service URL. Requirement is, While calling this procedure , the response data has been stored in the table. This is working fine in the back end. Now , i call th

  • WPA Security

    My iMac will not connect to a wireless network with WPA security enabled - message 'Network requires a WPA password appears' but it will not accept the password . If I take off the WPA security, then it connects. I have tried this at two separate loc

  • Can we debug programs called in background job?

    Hi Everyone, Here is my question: I set some breaakpoints in program A which is call by another program B. And in B, it defines a background job to run A. but when i run program B , the berakpoints set in A don't work,why??? (I can not run A directly

  • N97 Photo GPS Issue

    I've been taking a lot of photos recently using the N97 and have also installed Nokia Image Space. However, photos i've taken are miles out when reviewing the map on Flickr - literally miles out and bear no resemblace to the position the original pho

  • Exceeds Disc Capacity when it shouldn't

    I'm creating a DVD with a single title and one main menu that simply has a play button. The DVD compliant mpg is 2,675,243 KB. Encore is saying that my project exceeds disc capacity. I have no ROM content on this disc. This DVD is one in a series of