Make a button do something Xcode/interface builder

How can i make a button placed in interface builder do something

Well, that isn't much better - I am going to guess that your application is for Mac OS X in Objective-C.  Since something like a button is pretty basic, you either need some help with Xcode, or a conversion from some other programming language you know, or both.
There is a basic button tutorial here that uses the older Xcode (there shouldn't be much difference), although you should look at getting Xcode 4.2 (free from the AppStore), since that is what is current.
I don't do much in Obj-C so I can't help with good books, but Apple has a few documents on its developer site that should get you started (although most of their documentation has moved on to Xcode 4.

Similar Messages

  • DELETE or make TITLE BAR INVISIBLE in XCODE INTERFACE BUILDER

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

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

  • Can I upload apps made with xcode Interface Builder to the App Store

    Like my title says Can I upload apps made with xcode Interface Builder to the App Store? I'm currently making an app with the interface builder from xcode and I was wondering if I could upload it like that to the App Store.
    Please help me with this.

    Hi seba,
    In order to be able to submit apps to the App Store, you need these things:
    1. An Apple ID
    2. Join the Mac developer program ($99) https://developer.apple.com/programs/mac/
    Once you've got these, you're free to submit your created applications to the App Store. It should walk you through the process

  • Create an Xcode / Interface Builder Application Written In AppleScript

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

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

  • Trying to make a NSMatrix (of NSButtons) in Interface Builder 3.0

    In Interface Builder 2.x, to make a NSMatrix of NSButtons, all you had to do was option click and drag a corner after the guidelines appear till you had a NSMatrix. For some reason you can't do this anymore with IB 3.0. Does anyone know how to make a NSMatrix of NSButtons?

    I found out how. It's not the same, but basically you have more freedom. Just option drag a button, again and again till you have your pseudo NSMatrix built. After this go under Layout, to Embed Objects In ->, to Matrix, with all the buttons selected, then you have a NSMatrix.

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

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

  • Interface Builder w/ Xcode folder refs

    when i set up xcode with folder refs interface builder does not see my images in the dropdown list. i actually have to type out the path and ib will show a broken image. is there anyway to fix this?

    Note that *AppleScript Studio* has been deprecated in Snow Leopard - AppleScriptObjC is the new framework. You can still edit Studio projects, but the project templates have been removed and you will need to enable the AppleScript palette - see the release notes.
    Assigning a handler (IBaction) to a button (or any object) is pretty easy - create a handler in your script that takes a single parameter and name it with a trailing underscore (the naming conventions are also in the release notes), for example:on doButtonStuff_(sender) it will appear in *Interface Builder* under the *Connections Inspector* for your application delegate - from there you can make a connection from your object to the handler. MacScripter has some tutorials for AppleScriptObjC in Xcode, and I also have a button example project (it's not much of a tutorial, though).

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

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

  • The Interface Builder won't open in Xcode when I click on MainMenu.xib

    I have recently installed Xcode and have been trying to make very simple applications. The youtube videos that I have watched all show someone click the MainMenu.xib file and the Interface Builder opens. I have tried to do this and nothing opens. I am able to open the Interface builder manually but then the application that I make isn't linked and doesn't work.

    Hi chris
    Your question might be better posted in the Developer section of these forums.  It's actually the very last one listed in the scrolling list of "Communities"
    Bob

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

  • Xcode and Interface Builder

    Hello,
    I want to make a thing in Interface Builder so that when I click on the About "My Application" menu in the Menu Bar at the top a new window comes up.
    What I did, was made a new window (HUB) then, deselected Visible at Launch. I did all the linking stuff with applescript and when I tested (Apple - R) it showed up! Any idea why and how to fix this problem?
    Thanks!
    P.S. My app is an AppleScript app
    And also, if you can, how do you "export" your finished apps from Xcode?

    bubblejelly wrote:
    I want to make a thing in Interface Builder so that when I click on the About "My Application" menu in the Menu Bar at the top a new window comes up.
    Umm, OK. But you should get an "About" window by default without having to do anything. Are you saying you want another window too, or a different window than the default one?
    What I did, was made a new window (HUB) then, deselected Visible at Launch. I did all the linking stuff with applescript and when I tested (Apple - R) it showed up! Any idea why and how to fix this problem?
    HUB? Not sure what that means.
    Did you do the Apple-R in Xcode or in Interface Builder? "Test Interface" (or Apple-R) in Interface Builder is not the same as "Build and Run" (Apple-R) in Xcode. In IB if your "not visible" window is open when you do the Apple-R then it will also be open when the interface test is in progress. None of your AppleScript code gets executed when you're testing in IB.
    If you were doing the Apple-R in Xcode then I don't know. Post some of your AppleScript code.
    Steve

  • Xcode 4: Target and Commands. How do i make a button open "Window"?

    So to keep this short i'm making a very simple program and i need some help from Mac Developers.
    I'm making it in objective-C and i want to make 1-button target another program for example when u click on the button it "focuses" on iPhoto like when u click on it yourselves. Now i also want it to instantly, do some key-commands. I want it to target program > enter > write something > enter.
    I'm need this very very much. Please help me, it can't be that hard, if it is possible.
    Now in the bottom of the program it says my name, but there's also a little button to the right. Now i just started with Mac Developing, have been working for 2months with iOS in Xcode 4. So i know how you switch "views" for iOS, but how do i make this little button to the right, open a "window" (It's gray, hehe) and the button should be highlighted and when u click it again it goes back to normal and it closes. Now pretty much all i know is how to make the pop-up window remove the red dot and x in the corner, so u can't manually close it. I've tried googling highlighting button when the window is open, but didn't find anything.
    Please someone help me, this program is a free program and not for the AppStore.
    I'm making it for a group of Mac users.
    <Edited by Host>

    if you have a navigation controller do this: SecondViewCOntroller is the name to your .m (don't forget the import). SecondView is the name of your second View. You have to connect the function and the button in the xib file.
    -(IBAction)press1
    SecondViewController *nOVC  = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle: nil];
    [self.navigationController pushViewController: nOVC animeted:YES];
    Look at an example in apple developper...
    Perhaps it's not that because you learn during two months iOS and it's a beginner thing.

Maybe you are looking for

  • Is it possible to create a custom filter control in SSRS 2005?

    Hello! I need to make a custom filter control for my reports which will provide some options for date parameter: - year and month selection - Some RadioButtons: "Yesterday", "Today", "Tommorow", "Last week", "Next week" - Date range Please, give any

  • How do i fix a format error

    How do I fix a format error when i try and burn a dvd

  • Maximum image size with createImage() in applet

    hi, I am making a simple Horizontal scrolling stocks ticker. I made an offscreen image with all the companies,prices etc on the image and just change the x position of the image. My problem is that when the data increases the applet fails to create t

  • Need Pay Run results Query in R12

    Hi Experts, Good morning to all. I have a requirement to display the fields like Payroll name,Payroll Period,element name and their values from pay run results. if anybody worked on this requirement please send me the select statement. Cheers Ram

  • Where's my workspace background?

    Hi Have just switched over from CS2 on a PC to CS2 on an iMac (OS X 10.5.2, 2.4GHz Intel, 3GB RAM) When I start up the application (before I open any documents), I have no grey background... so all I see is the title bar at the top, and whichever pal