Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Resources for Windows developers moving to Mac OS X



Permlink Replies: 4 - Last Post: Jan 16, 2018 6:25 PM Last Post By: Brian Hamilton ...
Alan Colburn

Posts: 1
Registered: 10/22/17
Resources for Windows developers moving to Mac OS X
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 14, 2018 10:25 AM
As I start developing for Mac OS X (using Delphi Firemonkey) I seem to be encountering issue after issue related, undoubtedly, to my Windows mindset and lack of knowledge about how OS X development differs, not to mention more specific lack of knowledge re: coding on Windows but running on Mac.

For example, when `ImageControl1.LoadFromFile('rock.png');` generates the error `Exception EBitmapLoadingFailed in module RPS at 001FDACC. Loading bitmap failed (rock.png)` I don't know if it's because I'm using a png file, the file's location, where I specified the file's location--or something else.

Or when I get messages saying `There was an error parsing the Info.plist for the bundle at URL <0xc...>: NSCocoaErrorDomain-3840` and can't even find an Info.plist file, I'm lost.

So I'm curious whether anyone has good resources to help Windows developers learn how Mac development (with Delphi) differs, the common gotcha's to look out for, ways to write code that will work well cross-platform, etc. I've found plenty of resources for setting up development machines, but not much beyond that.

Thanks, as always -- Al
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: Resources for Windows developers moving to Mac OS X
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2018 4:57 PM   in response to: Alan Colburn in response to: Alan Colburn
Alan Colburn wrote:
As I start developing for Mac OS X (using Delphi Firemonkey) I seem to be encountering issue after issue related, undoubtedly, to my Windows mindset and lack of knowledge about how OS X development differs, not to mention more specific lack of knowledge re: coding on Windows but running on Mac.

For example, when `ImageControl1.LoadFromFile('rock.png');` generates the error `Exception EBitmapLoadingFailed in module RPS at 001FDACC. Loading bitmap failed (rock.png)` I don't know if it's because I'm using a png file, the file's location, where I specified the file's location--or something else.

is that the actual code?
or have you left out the directory location to the file?

Or when I get messages saying `There was an error parsing the Info.plist for the bundle at URL <0xc...>: NSCocoaErrorDomain-3840` and can't even find an Info.plist file, I'm lost.

So I'm curious whether anyone has good resources to help Windows developers learn how Mac development (with Delphi) differs, the common gotcha's to look out for, ways to write code that will work well cross-platform, etc. I've found plenty of resources for setting up development machines, but not much beyond that.

info.plist are specialised OSX files
and are best edited with Xcode, etc
you should be able to find then in a application bundle (right mouse click on the application to select to open package..then it opens like with more directories, e.g contents, resources



Thanks, as always -- Al
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: Resources for Windows developers moving to Mac OS X
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2018 4:57 PM   in response to: Alan Colburn in response to: Alan Colburn
Alan Colburn wrote:
As I start developing for Mac OS X (using Delphi Firemonkey) I seem to be encountering issue after issue related, undoubtedly, to my Windows mindset and lack of knowledge about how OS X development differs, not to mention more specific lack of knowledge re: coding on Windows but running on Mac.

For example, when `ImageControl1.LoadFromFile('rock.png');` generates the error `Exception EBitmapLoadingFailed in module RPS at 001FDACC. Loading bitmap failed (rock.png)` I don't know if it's because I'm using a png file, the file's location, where I specified the file's location--or something else.

is that the actual code?
or have you left out the directory location to the file?

Or when I get messages saying `There was an error parsing the Info.plist for the bundle at URL <0xc...>: NSCocoaErrorDomain-3840` and can't even find an Info.plist file, I'm lost.

So I'm curious whether anyone has good resources to help Windows developers learn how Mac development (with Delphi) differs, the common gotcha's to look out for, ways to write code that will work well cross-platform, etc. I've found plenty of resources for setting up development machines, but not much beyond that.

info.plist are specialised OSX files
and are best edited with Xcode, etc
you should be able to find then in a application bundle (right mouse click on the application to select to open package..then it opens like with more directories, e.g contents, resources



Thanks, as always -- Al
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: Resources for Windows developers moving to Mac OS X
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2018 5:38 PM   in response to: Alan Colburn in response to: Alan Colburn
Alan Colburn wrote:
As I start developing for Mac OS X (using Delphi Firemonkey) I seem to be encountering issue after issue related, undoubtedly, to my Windows mindset and lack of knowledge about how OS X development differs, not to mention more specific lack of knowledge re: coding on Windows but running on Mac.

For example, when `ImageControl1.LoadFromFile('rock.png');` generates the error `Exception EBitmapLoadingFailed in module RPS at 001FDACC. Loading bitmap failed (rock.png)` I don't know if it's because I'm using a png file, the file's location, where I specified the file's location--or something else.

is that the actual code?
or have you left out the directory location to the file?

Or when I get messages saying `There was an error parsing the Info.plist for the bundle at URL <0xc...>: NSCocoaErrorDomain-3840` and can't even find an Info.plist file, I'm lost.

So I'm curious whether anyone has good resources to help Windows developers learn how Mac development (with Delphi) differs, the common gotcha's to look out for, ways to write code that will work well cross-platform, etc. I've found plenty of resources for setting up development machines, but not much beyond that.

info.plist are specialised OSX files
and are best edited with Xcode, etc
you should be able to find then in a application bundle (right mouse click on the application to select to open package..then it opens like with more directories, e.g contents, resources



Thanks, as always -- Al
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: Resources for Windows developers moving to Mac OS X
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2018 6:25 PM   in response to: Alan Colburn in response to: Alan Colburn
Alan Colburn wrote:
As I start developing for Mac OS X (using Delphi Firemonkey) I seem to be encountering issue after issue related, undoubtedly, to my Windows mindset and lack of knowledge about how OS X development differs, not to mention more specific lack of knowledge re: coding on Windows but running on Mac.

For example, when `ImageControl1.LoadFromFile('rock.png');` generates the error `Exception EBitmapLoadingFailed in module RPS at 001FDACC. Loading bitmap failed (rock.png)` I don't know if it's because I'm using a png file, the file's location, where I specified the file's location--or something else.

is that the actual code?
or have you left out the directory location to the file?

Or when I get messages saying `There was an error parsing the Info.plist for the bundle at URL <0xc...>: NSCocoaErrorDomain-3840` and can't even find an Info.plist file, I'm lost.

So I'm curious whether anyone has good resources to help Windows developers learn how Mac development (with Delphi) differs, the common gotcha's to look out for, ways to write code that will work well cross-platform, etc. I've found plenty of resources for setting up development machines, but not much beyond that.

info.plist are specialised OSX files
and are best edited with Xcode, etc
you should be able to find then in a application bundle (right mouse click on the application to select to open package..then it opens like with more directories, e.g contents, resources



Thanks, as always -- Al
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02