Marmalade fixes lookup for developers

All Marmalade examples should be runnable after proper setup. (/Developer/Marmalade/6.0/examples/)

If any error comes up, there should be some settings to be added.

As at Marmalade 6.0, it is NOT yet a very complete system settings for OSX 10.7 and XCode 4.3.2.

This is a reference for shortcutting the problems you may meet on Marmalade 6.0

 

1.

Q: Can build for x86, but not ARM and Deploy Tool

A: Try install Marmalade GCC plugin. Located at /Developer/Marmalade/6.0/tools/xcode/.

Copy the file to /Users/(username)/Library/Application Support/Developer/Shared/Xcode/Plug-ins/

 

2.

Q: The error shown in Deploy Tool for iPhone: ERROR: codesign_allocate not found: /Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate

A: find the file: /Developer/Marmalade/6.0/s3e/deploy/plugins/iphone/sign_app.py, line 495

codesign_allocate = join(root, ‘Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate’)

change the path to:

codesign_allocate = join(root, ‘/usr/bin/codesign_allocate’)

 

Solutions to some weird problem

Provide here solutions to some difficult problems:

Q: <libxml/HTMLParser.h> file not found

A: Add “$SDK_DIR/usr/include/libxml2″ to “header search path" (not “library search path")

Q: ARC get error

A: You may skip ARC for those file not suitable to use ARC. Steps:

1. Go to Target0>Build Phases

2. Open “Compile Sources"

3. Select ALL files you want.

4. Press ENTER (don’t do mouse dbl-click)

5. Enter “-fno-objc-arc"

Available font in iOS

Family: Thonburi
	Font: Thonburi-Bold
	Font: Thonburi

Family: Snell Roundhand
	Font: SnellRoundhand-Bold
	Font: SnellRoundhand-Black
	Font: SnellRoundhand

Family: Academy Engraved LET
	Font: AcademyEngravedLetPlain

Family: Marker Felt
	Font: MarkerFelt-Wide
	Font: MarkerFelt-Thin

Family: Geeza Pro
	Font: GeezaPro-Bold
	Font: GeezaPro

Family: Arial Rounded MT Bold
	Font: ArialRoundedMTBold

Family: Trebuchet MS
	Font: TrebuchetMS
	Font: TrebuchetMS-Bold
	Font: TrebuchetMS-Italic
	Font: Trebuchet-BoldItalic

Family: Arial
	Font: Arial-BoldMT
	Font: ArialMT
	Font: Arial-ItalicMT
	Font: Arial-BoldItalicMT

Family: Marion
	Font: Marion-Regular
	Font: Marion-Bold
	Font: Marion-Italic

Family: Gurmukhi MN
	Font: GurmukhiMN
	Font: GurmukhiMN-Bold

Family: Malayalam Sangam MN
	Font: MalayalamSangamMN-Bold
	Font: MalayalamSangamMN

Family: Bradley Hand
	Font: BradleyHandITCTT-Bold

Family: Kannada Sangam MN
	Font: KannadaSangamMN
	Font: KannadaSangamMN-Bold

Family: Bodoni 72 Oldstyle
	Font: BodoniSvtyTwoOSITCTT-Book
	Font: BodoniSvtyTwoOSITCTT-Bold
	Font: BodoniSvtyTwoOSITCTT-BookIt

Family: Cochin
	Font: Cochin
	Font: Cochin-BoldItalic
	Font: Cochin-Italic
	Font: Cochin-Bold

Family: Sinhala Sangam MN
	Font: SinhalaSangamMN
	Font: SinhalaSangamMN-Bold

Family: Hiragino Kaku Gothic ProN
	Font: HiraKakuProN-W6
	Font: HiraKakuProN-W3

Family: Papyrus
	Font: Papyrus-Condensed
	Font: Papyrus

Family: Verdana
	Font: Verdana
	Font: Verdana-Bold
	Font: Verdana-BoldItalic
	Font: Verdana-Italic

Family: Zapf Dingbats
	Font: ZapfDingbatsITC

Family: Courier
	Font: Courier-Bold
	Font: Courier
	Font: Courier-BoldOblique
	Font: Courier-Oblique

Family: Hoefler Text
	Font: HoeflerText-Black
	Font: HoeflerText-Italic
	Font: HoeflerText-Regular
	Font: HoeflerText-BlackItalic

Family: Euphemia UCAS
	Font: EuphemiaUCAS-Bold
	Font: EuphemiaUCAS
	Font: EuphemiaUCAS-Italic

Family: Helvetica
	Font: Helvetica-LightOblique
	Font: Helvetica
	Font: Helvetica-Oblique
	Font: Helvetica-BoldOblique
	Font: Helvetica-Bold
	Font: Helvetica-Light

Family: Hiragino Mincho ProN
	Font: HiraMinProN-W3
	Font: HiraMinProN-W6

Family: Bodoni Ornaments
	Font: BodoniOrnamentsITCTT

Family: Apple Color Emoji
	Font: AppleColorEmoji

Family: Optima
	Font: Optima-ExtraBlack
	Font: Optima-Italic
	Font: Optima-Regular
	Font: Optima-BoldItalic
	Font: Optima-Bold

Family: Gujarati Sangam MN
	Font: GujaratiSangamMN
	Font: GujaratiSangamMN-Bold

Family: Devanagari Sangam MN
	Font: DevanagariSangamMN
	Font: DevanagariSangamMN-Bold

Family: Times New Roman
	Font: TimesNewRomanPS-ItalicMT
	Font: TimesNewRomanPS-BoldMT
	Font: TimesNewRomanPSMT
	Font: TimesNewRomanPS-BoldItalicMT

Family: Kailasa
	Font: Kailasa
	Font: Kailasa-Bold

Family: Telugu Sangam MN
	Font: TeluguSangamMN-Bold
	Font: TeluguSangamMN

Family: Heiti SC
	Font: STHeitiSC-Medium
	Font: STHeitiSC-Light

Family: Apple SD Gothic Neo
	Font: AppleSDGothicNeo-Bold
	Font: AppleSDGothicNeo-Medium

Family: Futura
	Font: Futura-Medium
	Font: Futura-CondensedExtraBold
	Font: Futura-CondensedMedium
	Font: Futura-MediumItalic

Family: Bodoni 72
	Font: BodoniSvtyTwoITCTT-BookIta
	Font: BodoniSvtyTwoITCTT-Book
	Font: BodoniSvtyTwoITCTT-Bold

Family: Baskerville
	Font: Baskerville-SemiBoldItalic
	Font: Baskerville-Bold
	Font: Baskerville-Italic
	Font: Baskerville-BoldItalic
	Font: Baskerville-SemiBold
	Font: Baskerville

Family: Chalkboard SE
	Font: ChalkboardSE-Regular
	Font: ChalkboardSE-Bold
	Font: ChalkboardSE-Light

Family: Heiti TC
	Font: STHeitiTC-Medium
	Font: STHeitiTC-Light

Family: Copperplate
	Font: Copperplate
	Font: Copperplate-Light
	Font: Copperplate-Bold

Family: Party LET
	Font: PartyLetPlain

Family: American Typewriter
	Font: AmericanTypewriter-CondensedLight
	Font: AmericanTypewriter-Light
	Font: AmericanTypewriter-Bold
	Font: AmericanTypewriter
	Font: AmericanTypewriter-CondensedBold
	Font: AmericanTypewriter-Condensed

Family: Bangla Sangam MN
	Font: BanglaSangamMN-Bold
	Font: BanglaSangamMN

Family: Noteworthy
	Font: Noteworthy-Light
	Font: Noteworthy-Bold

Family: Zapfino
	Font: Zapfino

Family: Tamil Sangam MN
	Font: TamilSangamMN
	Font: TamilSangamMN-Bold

Family: DB LCD Temp
	Font: DBLCDTempBlack

Family: Arial Hebrew
	Font: ArialHebrew
	Font: ArialHebrew-Bold

Family: Chalkduster
	Font: Chalkduster

Family: Georgia
	Font: Georgia-Italic
	Font: Georgia-BoldItalic
	Font: Georgia-Bold
	Font: Georgia

Family: Helvetica Neue
	Font: HelveticaNeue-Bold
	Font: HelveticaNeue-CondensedBlack
	Font: HelveticaNeue-Medium
	Font: HelveticaNeue
	Font: HelveticaNeue-Light
	Font: HelveticaNeue-CondensedBold
	Font: HelveticaNeue-LightItalic
	Font: HelveticaNeue-UltraLightItalic
	Font: HelveticaNeue-UltraLight
	Font: HelveticaNeue-BoldItalic
	Font: HelveticaNeue-Italic

Family: Gill Sans
	Font: GillSans-LightItalic
	Font: GillSans-BoldItalic
	Font: GillSans-Italic
	Font: GillSans
	Font: GillSans-Bold
	Font: GillSans-Light

Family: Palatino
	Font: Palatino-Roman
	Font: Palatino-Bold
	Font: Palatino-BoldItalic
	Font: Palatino-Italic

Family: Courier New
	Font: CourierNewPSMT
	Font: CourierNewPS-BoldMT
	Font: CourierNewPS-BoldItalicMT
	Font: CourierNewPS-ItalicMT

Family: Oriya Sangam MN
	Font: OriyaSangamMN-Bold
	Font: OriyaSangamMN

Family: Didot
	Font: Didot-Italic
	Font: Didot
	Font: Didot-Bold

Family: Bodoni 72 Smallcaps
	Font: BodoniSvtyTwoSCITCTT-Book

Callbacks

There are many different callbacks method signatures in iOS. Most of the time programmers may not recall all of them when they come to use.

Here I provide a check list of different call backs. Will add incrementally.

<GestureRecognizer>

UITapGestureRecognizer* gest_0 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap_view)];
[control_0 addGestureRecognizer:gest_0];
- (void)tap_view:(UITapGestureRecognizer*)recognizer{
   UIButton* btn_sender = (UIButton*)[recognizer view];
}

<NSTimer>

[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timer_callback:) userInfo:button repeats:FALSE];

-(void) timer_callback:(id)user_info{
   UIButton* btn_0 = (UIButton*)user_info;
}

<Multi-Threading>

[NSThread detachNewThreadSelector:@selector(threaded_function:) toTarget:self withObject:button];

-(void) threaded_function:(id) param{
   UIButton* btn_0 = (UIButton*)user_info;
}