image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old July 23rd, 2001, 07:49 AM
Registered User
 
Join Date: Oct 2000
Location: Canada
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
colddiver is on a distinguished road
Question Background image in .dmg?

Anyone found a way to insert a background image in a .dmg disk image (a la OmniGroup - see OmniWeb.dmg for an example)?

I have noticed that the image is in an invisible folder called .windowbg (the image itself being called .windowbg.jpeg). I tried replicating that folder (and its corresponding image) in a newly created .dmg (using dmgmaker) but it did not work.

While we're at it: anyone found a way to define a fixed window position and size for .dmg disk images (quite useful if a background image is there...).

Colddiver, newbie Cocoa developer
Reply With Quote
  #2  
Old July 23rd, 2001, 02:24 PM
endian's Avatar
Dis Member
 
Join Date: Sep 2000
Location: inside my skin
Posts: 960
Thanks: 0
Thanked 0 Times in 0 Posts
endian is on a distinguished road
You should just be able to set it like any other window - through view options. As far as Finder is concerned, a disk image is just another volume. I have had trouble getting it to stick sometimes, but now that I think about it I may have been trying to edit a read-only image.
__________________
g4 400 AGP - 512 RAM
10GB internal (dumping ground) + 60GB (30 GB OSX partition/30 GB OSX Server partition) - 3GB external SCSI (OS9/and I think the Public Beta is still on there somewhere) - DVD-RAM - ZIP

Reply With Quote
  #3  
Old July 23rd, 2001, 03:18 PM
Registered User
 
Join Date: Oct 2000
Location: Canada
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
colddiver is on a distinguished road
Humm... I tried using the View Options as you suggested and it didn't work. I will try again...

in the meantime, if someone know a more reliable way to do this, I would like to know.

Colddiver
__________________
My config:
PowerBook G3 500 (Pismo)
384 MB RAM
Mac OS X 10.1
XFree & Enlightenment
Reply With Quote
  #4  
Old August 1st, 2001, 09:03 AM
Registered User
 
Join Date: Jan 2001
Posts: 147
Thanks: 0
Thanked 1 Time in 1 Post
monty is on a distinguished road
AFAIK, the name of the file and the folder it's in is irrelevant, as long as it's invisible so that the user can't SEE it. Then select that file in the view options for that window as the background.

Note: I haven't actually done this so it may not work but I have set a picture as the background for other windows, just never on a disk image. But a can't see how it wouldn't work.

Peter
Reply With Quote
  #5  
Old June 21st, 2005, 11:35 PM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
simon_h_82 is on a distinguished road
I think you might be able to click
- view
- show view options
- under background
- show picture

thats what ive been doing
Reply With Quote
  #6  
Old June 22nd, 2005, 02:15 PM
Randman's Avatar
HA! HA! HA!
 
Join Date: Feb 2003
Posts: 2,999
Thanks: 0
Thanked 0 Times in 0 Posts
Randman is on a distinguished road
Once the dmg is created, Apple i for info and copy and paste the new icon just as you would with any other icon change.
__________________
This is a computer-generated message and needs no signature.
Reply With Quote
  #7  
Old June 22nd, 2005, 04:17 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,678
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
I think they (Omni) set up a regular folder the way they wanted it complete with background image and icon placement, then used Disk Utility and made an image from that folder (File > New > Disk Image from Folder).

Your background image doesn't have to be hidden, they just do that so there's no clutter on the disk image -- just the application and whatever needs to be seen by the user.
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #8  
Old June 23rd, 2005, 11:27 PM
Person that uses a Mac
 
Join Date: Nov 2003
Location: Berea, Ohio
Posts: 402
Thanks: 0
Thanked 0 Times in 0 Posts
btoth is on a distinguished road
The easiest way I've found:

1) Create new disk image as read/writable from the folder of files you want on the disk image, including the image.

2) Open the disk image in a new window, position everything how you want it, size the window.

3) Set the view options to that image

4) With the developer tools installed, there's a tool in /developer/tools called SetFile. type in /developer/tools/setfile -V imagefilename (the uppercase V makes it invisible in the Finder) in the Terminal

5) Convert your disk image to compressed or whatever.
__________________
Mac Software by Me - ImageReel, Google Maps Address Book Plugin.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Safari and bg image problem bobbyfett Design & Media 13 May 8th, 2003 01:16 PM
Changing the login background image in OSX cloudair Mac OS X System & Mac Software 1 April 8th, 2003 03:12 AM
Black background with White Text llyrwy Opinions, & Open Letters 5 March 30th, 2003 02:05 PM
background image 2, the sequel Lazzo Design & Media 0 June 17th, 2002 08:43 AM
How to tile a background image in a window? garfildo Mac OS X System & Mac Software 0 April 3rd, 2002 01:54 PM


All times are GMT -5. The time now is 06:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.