Recent content by redbird

  1. R

    Making a sheet from a subclass of NSWindow

    //GPGPassphrasePanel is a subclass of NSWindow GPGPassphrasePanel *ppanel = [GPGPassphrasePanel panel]; //do some stuff to set up ppanel [NSApp beginSheet:ppanel modalForWindow:window modalDelegate:nil didEndSelector:nil contextInfo:nil]; All...
  2. R

    Making a sheet from a subclass of NSWindow

    Actually, I started out with subclasses of NSPanel, but they wouldn't work either. I move to subclasses of NSWindow because I remember a while back I found that I could only make sheets from an NSWindow. If I changed the window to an NSPanel (say, in IB) then it would refuse to run as a sheet...
  3. R

    Making a sheet from a subclass of NSWindow

    Does anyone know of a way to have a subclass of NSWindow appear as a sheet? It seems to me like it should just work, but it refuses to display as a sheet. Alternatively, might it be something related to that I'm trying to make it relative to an NSWindow that belongs to an NSDocument subclass?
  4. R

    Framework prebindings

    Thanks, that did it. Always learning new things about the linker. :-)
  5. R

    Framework prebindings

    Hopefully someone can help me with this. I have two framework: x and y. y links against x. x builds fine and y builds fine. The problem comes when I try to build my application that uses both x and y. It will be fine if prebinding is off, but then it is unacceptably slow. When prebinding...
  6. R

    Can't force no untitled documents

    On this topic, there's another thing I can't get working. I want my application to show the open file panel once it has finished loading. Since the open menu talks to the FirstResponder to do its openDocument, I thought I'd connect to the FirstResponder and run openDocument. Alas, IB wouldn't...
  7. R

    Can't force no untitled documents

    Thanks, that did it. Guess I should have snooped around NSApplication more (I figured it was somewhere in there, but couldn't find it).
  8. R

    Can't force no untitled documents

    Hopefully someone will be able to help me with this. I am creating a document based Cocoa application. I have things set up pretty much as Apple gives them to you. I've filled in some document types that my program is supposed to take, etc.. The problem is, though, that my program is not...
  9. R

    setEnabled doesn't work on an NSMenuItem

    Thanks, that did the trick. It's so obvious, I must have just missed where it is in the documentation. Oh well. %-)
  10. R

    setEnabled doesn't work on an NSMenuItem

    Google didn't turn up anything and posting here proved fruitful yesterday, so I'll try it again. In my program I have some menu items. At times I need some of the menu items to be disabled and then later reenabled (using them doesn't cause crashes, but the behavior is confusing and easier to...
  11. R

    application:openFile problems

    Thanks, this was just the hint I needed. At first restarting the Finder didn't have any effect. Then I made a copy of the application, remembering I had a problem like this when I first built DropScript back a while ago, and everything suddendly started working with the copy. :-) Seems it...
  12. R

    application:openFile problems

    Okay, I tried this and it still didn't work. Here's how I have things set: Name: NSStringPboardType Extensions: "*" OS Types: "****" Icon file: Document Class: RRR_Controller Viewer My application has only one window and not multiple windows, so there is no document class, only my...
  13. R

    application:openFile problems

    It does not light up. If it did then at least I'd have something to go on. I've tried playing with that, but got nowhere. I want my program to open any file, though, so setting it to a certain filetype is not really what I want. At any rate, it doesn't do anything. :-/
  14. R

    application:openFile problems

    I'm trying to be able to drag and drop files onto my application, but it's not working and I don't know what I have set wrong. I created a regular Cocoa application and am now trying to add this feature and can't. In IB, I open MainMenu.nib and connect the File Object to my controller that...
  15. R

    Install never finishes

    Any time I run the installer (i.e. I have a .pkg and want to install it's contents) it will get until the bar is about half way full and then the installer just sits for hours doing nothing. After a few hours, I just quit it out, tired of waiting for it. I'm using 10.0.0, because I can't get...
Top