• 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: Identifying Cocoa Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identifying Cocoa Methods


  • Subject: Re: Identifying Cocoa Methods
  • From: Ken Ferry <email@hidden>
  • Date: Mon, 11 Oct 2010 12:45:08 -0700

On Fri, Oct 8, 2010 at 4:22 PM, Jason Slack-Moehrle <email@hidden>wrote:

> Hello All,
>
> I have a large app that uses Carbon. We know that Carbon GUI is not
> available in 64-bit.
>
> I need to integrate Carbon and Cocoa so that I can replace the existing
> Carbon GUI elements with Cocoa equivalents. Mostly Dialog Boxes, etc.
>
> I know that I need to write C-ACllable Wrapper Functions for the Cocoa
> stuff that I need, but I am not sure how to identify what I need to do.
>

Given that (a) if you're calling Carbon UI functions, you already aren't
writing code portable to other operating systems and (b) that Objective-C is
a superset of C, there should be no need for wrapping Objective-C with C.

Just use Cocoa classes where appropriate and compile the file as
Objective-C.  That's usually done by making the file extension .m, but you
can also do it with a compiler flag.


>
> Example. I know that I will probably need to use NSOpenPanel and
> NSSavePanel. So I need to write a C-Callable Wrapper for the parts of
> NSSavePanel that I would use? Like: setTitle, setMessage, etc, etc?
>
> Or am I in to deep to what needs to be done and I don't need to be?
>
> A nudge in the right direction is appreciated.
>
> Best,
> -Jason
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Identifying Cocoa Methods (From: Jason Slack-Moehrle <email@hidden>)

  • Prev by Date: Re: main window disappears on resize
  • Next by Date: Re: ivars and fundamental types
  • Previous by thread: Re: Identifying Cocoa Methods
  • Next by thread: Re: Identifying Cocoa Methods
  • Index(es):
    • Date
    • Thread