public
Description: The Nu programming language.
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/nu.git
Nibless Cocoa (optional).

Several of the Nu examples build their interfaces directly
with Nu instead of using conventional Cocoa nib files.
Until now, these examples were built with a dummy
MainMenu.nib file that was copied in place by nuke.

With this change, the dummy MainMenu.nib file is no longer
copied into nibless applications.  Instead, the NSMainNibFile
key is omitted from the application's Info.plist file.

But if any nibfiles are specified in the application's
Nukefile, NSMainNibFile will be included and set to
"MainMenu.nib".  This allows nuke to build traditional
nib-based Cocoa applications as well as nibless ones.
timburks (author)
Sat May 03 22:41:17 -0700 2008
commit  edd334987a9f72f3f4bb2d68a2a1b2c7115297c4
tree    0b0bcfdb66f17d91426a6388eebc10639432efb5
parent  47961068bbd8293c337bf60c4824a226aef53402
...
302
303
304
305
 
 
306
307
308
...
391
392
393
394
395
396
 
 
397
398
399
...
302
303
304
 
305
306
307
308
309
...
392
393
394
 
395
396
397
398
399
400
401
0
@@ -302,7 +302,8 @@
0
      (unless @icon_files (set @icon_files (array "#{@prefix}/share/nu/resources/nu.icns")))
0
      
0
      ;; DEFAULT: if no nib files are specified, use the standard (empty) Nu MainMenu.nib.
0
- (unless @nib_files (set @nib_files (array "#{@prefix}/share/nu/resources/English.lproj/MainMenu.nib")))
0
+ ;; -- note -- we no longer do this, instead we just omit the NSMainNibFile entry from Info.plist
0
+ ;;(unless @nib_files (set @nib_files (array "#{@prefix}/share/nu/resources/English.lproj/MainMenu.nib")))
0
      
0
      ;; DEFAULT: if no creator code is specified, use "????"
0
      (unless @application_creator_code (set @application_creator_code "????"))
0
@@ -391,9 +392,10 @@
0
                                 "CFBundlePackageType" "APPL"
0
                                 "CFBundleSignature" @application_creator_code
0
                                 "CFBundleVersion" "1.0"
0
- "NSMainNibFile" "MainMenu"
0
                                 "NSHumanReadableCopyright" "Copyright (c) 2007 Tim Burks, Neon Design Technology, Inc."
0
                                 "NSPrincipalClass" "NSApplication")))
0
+ (if @nib_files
0
+ (info set:(NSMainNibFile:"MainMenu")))
0
            (if @application_help_folder
0
                (info setObject:@application_help_folder forKey:"CFBundleHelpBookFolder")
0
                (info setObject:@application_help_folder forKey:"CFBundleHelpBookName"))

Comments

    No one has commented yet.