Author Topic: Carbon/Carbon.h  (Read 1587 times)

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Carbon/Carbon.h
« on: March 29, 2012, 03:00:21 pm »
Can someone with a Mac give me this file?  I cant seem to find an alternative for it on iOS.  I've google the crap out of it and the best answer I get is

"TBH dude its just a file with a bunch of #includes to other headers, not really important"

It is important for me though,  least I can see what it #Includes....


Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: Carbon/Carbon.h
« Reply #1 on: March 29, 2012, 03:15:28 pm »

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Carbon/Carbon.h
« Reply #2 on: March 29, 2012, 03:28:11 pm »
Uhhm, if youre trying to port something that requires Carbon then youre out of luck. Carbon is a MacOSX only framework. Even if you find the header, it will fail when trying to link it because the libraries do not exist. There is no version of Carbon that is compiled for arm. You would either have to find a way to configure it to build without Carbon, edit the code to use a different framework than Carbon, or just give up and find something else to port.

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4501
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Carbon/Carbon.h
« Reply #3 on: March 29, 2012, 04:41:13 pm »
Have you tried looking through https://ininjas.com/wiki/files/usr/include/ ?

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Carbon/Carbon.h
« Reply #4 on: March 29, 2012, 04:49:54 pm »
^Yes, no luck

@C0deH4cker good point,  Maybe I could use Corefoundation?  Id still love to see whats inside Carbon.h though none the less.  Oh wellz

Don't like seeing ads? Click here to register!

Apetrick

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3510
  • Reputation: 91
  • <Apetrick> lank is 1337
  • Badges:
  • iDevices: Ipod Touch 4g
Re: Carbon/Carbon.h
« Reply #5 on: March 29, 2012, 05:05:53 pm »
So what was it you were trying to port if you dont mind me asking.
<%a12danrulz> Idk, but doing a DoS from an apple device is like fighting a bear with a plastic spork

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4501
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Carbon/Carbon.h
« Reply #6 on: March 29, 2012, 06:20:34 pm »
I'll install OS X and see what I can find. 

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Carbon/Carbon.h
« Reply #7 on: March 29, 2012, 09:46:50 pm »
I think that Carbon is the GUI framework used on Mac OSX, so you would need to use UIKit to replace it. Ill figure it out for sure in just a minute.

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Carbon/Carbon.h
« Reply #8 on: March 30, 2012, 09:34:31 am »
Yea I actually read that today,  I cant really get it to work though. Thanks for the help. 

Im trying to port HexFiend

http://distfiles.macports.org/hexfiend/

It would be a native iOS app. 

H4CK3R

  • Haxor
  • Sr. Member
  • *****
  • Posts: 407
  • Reputation: 42
  • I try and write cool tweaks!
    • Kyle Howells
  • Badges:
  • Computers: MacBook Pro
  • iDevices: iPod 1G, iPod 2G, iPod 4G, iPhone 4S, iPad 2, iPad mini
Re: Carbon/Carbon.h
« Reply #9 on: March 30, 2012, 02:44:15 pm »
I think that Carbon is the GUI framework used on Mac OSX
Actually it is the GUI framework used on Mac 8 & 9. It is a C framework.
On OSX you use AppKit, which is ObjC (although AppKit is outdated too).

Really if you're going to make something on OSX I'd recommend sticking with UIKit.

Don't like seeing ads? Click here to register!

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4501
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Carbon/Carbon.h
« Reply #10 on: March 30, 2012, 02:57:16 pm »
It looks like you are in luck:
Code: [Select]
sh-3.2# find / -name Carbon.h
/Applications/Xcode.app/Contents/Developer/Headers/FlatCarbon/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/Developer/Headers/FlatCarbon/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer/Headers/FlatCarbon/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h

I'll upload them tonight. 

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Carbon/Carbon.h
« Reply #11 on: March 30, 2012, 05:09:28 pm »
It wont work though. Look at my first post in this topic.

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4501
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Carbon/Carbon.h
« Reply #12 on: March 30, 2012, 05:23:03 pm »
Yes, I am aware, but:
Id still love to see whats inside Carbon.h though none the less. 

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Carbon/Carbon.h
« Reply #13 on: March 31, 2012, 11:13:10 am »
Oh, didnt see that lol.

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Carbon/Carbon.h
« Reply #14 on: March 31, 2012, 02:29:31 pm »
It looks like you are in luck:
Code: [Select]
sh-3.2# find / -name Carbon.h
/Applications/Xcode.app/Contents/Developer/Headers/FlatCarbon/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/Developer/Headers/FlatCarbon/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer/Headers/FlatCarbon/Carbon.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.h

I'll upload them tonight.



Awesome thanks dude,  Maybe I can atleast fake Carbon/Carbon.h and not have to edit source of whatever I need to compile.