• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT?] Nib files balloon app size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT?] Nib files balloon app size


  • Subject: Re: [OT?] Nib files balloon app size
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 11 Apr 2003 21:26:54 -0700

On Friday, April 11, 2003, at 06:07 PM, Yuhui wrote:

On the other hand, this seems like a gross oversight in the development tools. Shouldn't PB remove those files when building a Deployment product? I can understand if it leaves them in during Development, but not for Deployment.

Actually, it always leaves them in careless of what style of build you have activated.

You can automatically delete them by using a shell script, which is what I do and it works for me... Something like this ought to work:

find "./${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents" \( -name 'classes.nib' -or -name 'info.nib' \) -type f -exec rm -f {} \; -prune ;

You can also substitute "-delete" for "-exec rm -f {} \;" if you want, but I use the latter since it's more portable.

(Warning: This runs rm, so use it at your own risk! That said, it hasn't destroyed anything important to me. Yet.)

On Friday, April 11, 2003, at 06:38 PM, David Remahl wrote:

It is sometimes very useful for the end user to be able to tweak the user interface to his/her liking. It is a feature of Interface Builder and the nib format, and its usefulness is reduced if those files are removed. A few thousand bytes isn't that significant with today's huge harddrives. And I don't believe those files are loaded into memory when the application runs, so they don't waste any RAM.

Yes, but there are a number of providers and hosting companies out there that enforce a bandwidth cap. If one trims an application's download size by 1 kilobyte, and 1,024 people download the file, then that's a whole megabyte of bandwidth saved.

Besides that, I am obsessed with making things as small and efficient as possible when I release something. I can't stand bloatware. I've got a Mac OS X application that is so small, it could (before I added another localization) fit onto a Commodore 64 floppy disk and still have a couple of K left over.

As far as I'm concerned, if someone wants to modify the nibs to anything I've released for some reason (like localizing the application), then I'll provide the editable nibs on request. But 99% of my users don't need them...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"Building the future and keeping the past alive are one and the same thing." - Metal Gear Solid 2
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: [OT?] Nib files balloon app size
      • From: Nick Zitzmann <email@hidden>
References: 
 >Re: [OT?] Nib files balloon app size (From: Yuhui <email@hidden>)

  • Prev by Date: Re: Native Cocoa vs Java performance question
  • Next by Date: Re: NSMutableDictionary not sending release message to contained objects at dealloc time
  • Previous by thread: Re: [OT?] Nib files balloon app size
  • Next by thread: Re: [OT?] Nib files balloon app size
  • Index(es):
    • Date
    • Thread