Professional Web Applications Themes

application:openFile and delegate (Cocoa) - Mac Programming

My Cocoa is not a doent based application. So in MenuController I use - (BOOL)application:(NSApplication *)sender openFile:(NSString *)pathname In IB "Files's Owner" is connected to "MenuController" by "delegete" But when I drag and drop a doent icon on the application icon application:openFile is not called the application do not open the application icon is not highlited Do I miss someting ?...

  1. #1

    Default application:openFile and delegate (Cocoa)

    My Cocoa is not a doent based application.
    So in MenuController I use

    - (BOOL)application:(NSApplication *)sender openFile:(NSString *)pathname

    In IB "Files's Owner" is connected to "MenuController" by "delegete"

    But when I drag and drop a doent icon on the application icon
    application:openFile is not called
    the application do not open
    the application icon is not highlited

    Do I miss someting ?
    Alain Guest

  2. #2

    Default Re: application:openFile and delegate (Cocoa)

    In article <168.1.3>, Alain Birtz
    <ca> wrote:
     

    Is your File Owner's class NSApplication?

    Spence

    --
    James P. Spencer
    Rochester, MN

    "Badges?? We don't need no stinkin badges!"
    James Guest

  3. #3

    Default Re: application:openFile and delegate (Cocoa)

    Yes, File Owner is of class NSApplication

    In article <190420042005511075%net>,
    net wrote:
     
    >
    > Is your File Owner's class NSApplication?
    >
    > Spence[/ref]
    Alain Guest

  4. #4

    Default Re: application:openFile and delegate (Cocoa)

    I found myself my error:
    The "Info.plist" did not hold "CFBundleDoentTypes"

    Thank you.


    In article <190420042005511075%net>,
    net wrote:
     
    >
    > Is your File Owner's class NSApplication?
    >
    > Spence[/ref]
    Alain Guest

Similar Threads

  1. Replies: 2
    Last Post: April 17th, 06:32 PM
  2. Replies: 8
    Last Post: February 4th, 05:56 AM
  3. Replies: 4
    Last Post: January 16th, 06:53 AM
  4. Replies: 10
    Last Post: October 25th, 11:50 AM
  5. openFile problems
    By ftnredwing webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 5
    Last Post: August 22nd, 08:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139