I want to create cursor rsrc files on the Mac from png files. The application that uses the cursors requires it to be in a .rsrc format and I cannot change that. Does anybody know of any way I can create the cursor .rsrc files from png images.
You can use Rezilla to edit resource files on Mac OS X, it has a CURS (and crsr) editor among others. It's a PowerPC binary but it runs well under rosetta on intel.
Also, you don't create a CURS resource file, you create a resource file and add as many CURS resources to it as you need. Resource forks are generic and can contain any number/kind of resources.
Its been a long time since I've thought about MacOS resource forks. Are you using the classic MacOS (i.e. before MacOS X)?
As I recall, ResEdit was the application most often used to manipulate the resource fork of a classic Mac application. I know it can edit cursor resources, but I don't recall if it can read PNG files. You may need to convert the files to GIF.
ResEdit is a Classic MacOS application. MacOS X prior to 10.5 could run Classic apps in emulation, but in 10.5 this support has been removed. You'd need to find a system either running the classic MacOS directly, or running 10.4 with Classic installed.
According to this link http://www.macfixit.com/article.php?story=20060621071707921 I need to have a Power PC Mac to run Mac classic. Is this right? I have a Intel Mac running Mac OS 10.4.11 . Are there any other tools capable of running on Intel Mac and could help me create CURS rsrc files. I tried using ResKnife but it didnt seem to have an option to create CURS rsrc files.
If by .rsrc file you mean a standard Mac resource file, you can use the Resource Manager to save the image in a file of the appropriate format.
Related
I am completely new to Mac OS and I have an application written in .Net Core codebase. Now all I want is to get it installed on Mac OS machines. My question is how can I create an installer (.DMG) file? At the moment My Visual Studio on Windows has created a .dll file with all other dependencies in the folder. Also for now most of the configuration values I have hard-coded but in the release build it has to be chosen by an end-user. So how can I prompt them for required directories? If you can provide me a link for documentation tool or any kind of suggestion would be greatly appreciated. At the moment if I want to run my application on Mac I have to use Terminal and then dotnet myApplication.dll in order to run application. My end goal would be to ask user for all required file paths and at the end create a System level Daemon (similar to windows service) to keep it always Alive. Would Xcode help in this situation? I already tried to open my .Net core project using xcode but it failed to load saying unsupported proect type.
Thanking in advance for your help!
If you wanted to use the standard macOS Installer to distribute your .net Core app, you would need to create a .pkg file. There seem to be ways to do this on the console or with Third Party Tools
sudo pkgbuild -install-location /Applications -component /path/to/your/application ./Desktop/YourPackage.pkg
There is an older manpage for pkgbuild, or you can try running man pkgbuild on your Mac.
I haven't tried this, but creating a .pkg is the normal way to install stuff on a Mac for applications where you can't just drag/drop the .app into the Application folder. (macOS applications are actually Directories with a special structure)
A .DMG is just a disk image - it doesn't "do" anything, it's just a container for files. You can create one with Disk Utility.
Wondering if anyone else is successfully using irfanview on OSX ML?
Or if you might suggest an alternative - a quick-n-easy image viewer with similar browsing features. (sry, iphoto and preview just seem to lack the features I miss from irfanview)
Found this solution using WineBottler [edited for recent versions and Mountain Lion].
Technically it works - irfanview does install on OSX.ML. And irfanview can read many file formats just fine. But it appears to be limited to 'built-in' formats and has problems loading images which use one of its plugins.
The Z: directory maps to the mac root. Once I figured that out it made more sense. Also, it is a bit clunky to use and not quite as convenient as it is on Windows. (Sort of sad. Well, I will just keep looking!)
--
Try WineBottler
This free software is a wrapper for WINE, which unlike other Windows emulators is really simple to set up.
It just works.
1 download WineBottler and install it. I used the developer version of wine-bottler (does not need X11 which OSX.ML no longer has by default)
2 Download the latest version of IrfanView (4.36)
3 Start WineBottler and Create a Custom Prefix
4 For the Install File, select the IrfanView installation file you just downloaded
5 In the Winetricks section select vcrun6
6 Click Install
You'll then see a standard Windows installation - follow the prompts.
At the end there's a pop-up, from which you should select ivew32.exe as the executable to run. (it defaulted to the slideshow for me)
That's it! WineBottler generates an Irfanview App that can by launched like any Mac App.
Solution found! (for me at least)
feh
Used Homebrew to install it. (Thanks Homebrew!)
On OSX.ML, this requires X11 install too (used XQuartz 2.7.4 which i had installed anyway).
I'm a unix / terminal / command line user so 'feh' works very well for me.
Unfortunately doesn't handle webp naturally yet (probably only a matter of time tho). But I can use Chrome for view those images in a pinch.
Might be worth checking out PicTwiddle Lite - only supports the most common image formats, but it wasn't clear from your question what you need. Similar browsing to IrfanView though, plus you can browse folders/thumbnails in fullscreen which is nice. And it has an OSX version.
You have to scroll down to the bottom of the page for the Lite/Free version: http://pictwiddle.com/download/
Where is the file syscall_sw.h in Mac OS X?
I'm using it to program the classes found within in assembly, but I can only find the file on the Internet. I want to find it on my actual operating system filesystem. I've downloaded all of XCode and installed the Components and Documentation, but I still can't find the file.
It is not a public* header -- it can, however, be found in the kernel source code:
http://www.opensource.apple.com/source/xnu/xnu-2050.9.2/osfmk/kern/syscall_sw.h
*: Indicating that you should not need it unless you're working in the kernel.
HI,
I have MAC OS X 10.6.4 dmg file. I want to make bootable DVD.
Do I have to convert it to ISO? Or just burning dmg file will do?
Any other things that needs to be done to make it bootable?
Please let me know.
Thanks!
If the .DMG file that you have is an image of an original Mac OS X 10.6.4 DVD, it will already be bootable. All you have to do is burn the image to a DVD, using Apple's Disk Utility (found in the /Applications/Utilities folder on any Mac OS X installation).
If your .DMG file is illegally obtained, it may or may not include a proper boot sector, and in that case, you're on your own. Buy a legal copy of Mac OS X if you want to use it; it's more than reasonably priced.
A .DMG file is an Apple Disk Image, commonly found in the Mac world instead of the .ISO image file format common in Windows. You can easily convert between the two formats using Disk Utility or a host of other utilities. However, there should be no need to do this unless you are trying to burn the image from a Windows-based PC and your burning software of choice does not support burning from .DMG images, you may need to convert it to an ISO. Nero Burning ROM supports burning .DMG images, as does the free and most excellent MagicISO. Alternatively, dmg2iso can convert the image to an .ISO for burning in the software of your choice (of course, you more than likely will still not be able to read the contents of the image file in Windows because Mac OS X uses a different type of file system).
In Windows, I can use the FindNextChangeNotification API to watch a file or folder for changes. For example, I can watch a folder and get notified when a file is added or removed.
Is there a similar API on OS X?
Mac OS X v10.5 introduces the File System Events API. Have a look at:
Technology Overview
Using the File System Events API
File System Events Programming Guide (PDF)
FSEvents is nice, but for watching just a small set of files or folders it's rather overkill, and it does require Leopard or newer. (The underlying technology was introduced in Tiger, but the API wasn't public.)
As a possible alternative, note that OS X inherits kqueue from FreeBSD (at least as of Panther). You can search for examples of EVFILT_VNODE usage, that's what you want to use to watch for file alterations.