Editing NSWindow

Discussion in 'Mac Programming' started by Blakeasd, Mar 30, 2011.

  1. Blakeasd macrumors 6502a

    Joined:
    Dec 29, 2009
    #1
    Hello,
    I located the NSWindow.h file on my mac and I wanted to know if I edited the file to my liking would all the NSWindows on my mac change?
     
  2. Matthew Yohe macrumors 68020

    Joined:
    Oct 12, 2006
    #2
    No. Besides, that's just a header file.
     
  3. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
    #3
    I just tried and OS X would not allow me to change the file anyway
     
  4. Matthew Yohe macrumors 68020

    Joined:
    Oct 12, 2006
    #4
    That's just because the permissions on it are locked. You could easily unlock them.
     
  5. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
  6. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
    #6
    I know that, but I would rather not mess up my computer by editing NSWindow and change something I don't know about :)
     
  7. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #7
    I had a friend look in her /System/Library/Frameworks in one of the frameworks folders: she said there was no subfolder or symlink "Headers" in it. IOW, the headers are only installed if you install XCode. They do not affect the function of the framework itself in any way at all. The only thing I imagine you can expect to happen is weird behavior from GDB.
     
  8. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #8
    People it just a header file. It does nothing in regards to behaviour. Perhaps on app-by-app basis you could patch NSWindow with a category. But if you wanted to change the behaviour of NSWindow system-wide you'd need to patch the library inside Cocoa.framework.
     
  9. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
    #9
    I understand what a header file is..... I was just curious about what would change if I changed this file
     
  10. Matthew Yohe macrumors 68020

    Joined:
    Oct 12, 2006
    #10
    Nothing.
     

Share This Page