Binding Objective-C
Libraries
Pierce Boggan
Xamarin Support Engineer
pierce.boggan@xamarin.com
pierce@pierceboggan.com
Why?
• Time
• Money
• Creativity
• “Great artists steal”
Potential Obstacles
• Complicated
• Just another thing to learn
• No Objective-C knowledge
• No knowledge of the process
Simplicity
• No Objective-C knowledge is required (for most simple libraries)
• Tools that cut down time to bind
• Very me...
Binding vs. Converting
Binding
• Little-to-no Objective-C knowledge required
• Quick and straightforward
• Less customizat...
Expectations
WON’T:
• Be a bindings expert
• Be able to bind complex libraries
WILL:
• Be able to bind simple libraries wi...
Finding & Downloading Libraries
WHAT:
• UI Controls
• SDKs
• Helper Libraries
WHERE:
• CocoaControls
• Github
• Twitter
First Time Downloads
• Objective Sharpie
• Xcode Command Line Tools
• Other SDKs to bind against
DEMO
QBFlatButton
• Open-sourced on Github
• Text version
Process Review
1. Identify & Download Library
2. Create an Objective-C Static Library
3. Generate Bindings with Objective ...
Process Review: Optional
1. Create Demo Project
2. Open-source on Github
3. Submit to the Xamarin Component Store
Moving Forward: Reading Up
• Programming with Objective-C (Apple)
• Binding Objective-C Libraries (Xamarin)
• Binding Type...
Moving Forward: Practice
• Remember: Practice makes perfect!
• Examine other bindings in the mono/monotouch-bindings
repos...
Q&A
THANK YOU
Upcoming SlideShare
Loading in …5
×

Binding Objective-C Libraries in Xamarin.iOS

1,522 views

Published on

Ever wondered how to use Objective-C libraries in your Xamarin.iOS project? Now you can learn, with Binding Objective-C Libraries in Xamarin.iOS.

Video: Coming
Objective Sharpie: http://docs.xamarin.com/guides/ios/advanced_topics/binding_objective-c_libraries/objective_sharpie
QBFlatButton: https://github.com/questbeat/QBFlatButton
FlatButton: https://github.com/pierceboggan/FlatButton
Producing Better Bindings: http://blog.xamarin.com/producing-better-bindings-for-xamarin.ios-and-xamarin.mac/

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,522
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Binding Objective-C Libraries in Xamarin.iOS

  1. 1. Binding Objective-C Libraries Pierce Boggan Xamarin Support Engineer pierce.boggan@xamarin.com pierce@pierceboggan.com
  2. 2. Why? • Time • Money • Creativity • “Great artists steal”
  3. 3. Potential Obstacles • Complicated • Just another thing to learn • No Objective-C knowledge • No knowledge of the process
  4. 4. Simplicity • No Objective-C knowledge is required (for most simple libraries) • Tools that cut down time to bind • Very mechanical, repeatable process
  5. 5. Binding vs. Converting Binding • Little-to-no Objective-C knowledge required • Quick and straightforward • Less customization and extensibility Converting • Objective-C knowledge is a must • Quite tedious • More customization and extensibility
  6. 6. Expectations WON’T: • Be a bindings expert • Be able to bind complex libraries WILL: • Be able to bind simple libraries with no Objective-C knowledge • Have a solid foundation moving forward
  7. 7. Finding & Downloading Libraries WHAT: • UI Controls • SDKs • Helper Libraries WHERE: • CocoaControls • Github • Twitter
  8. 8. First Time Downloads • Objective Sharpie • Xcode Command Line Tools • Other SDKs to bind against
  9. 9. DEMO
  10. 10. QBFlatButton • Open-sourced on Github • Text version
  11. 11. Process Review 1. Identify & Download Library 2. Create an Objective-C Static Library 3. Generate Bindings with Objective Sharpie 4. Create iOS Binding Project in Xamarin Studio
  12. 12. Process Review: Optional 1. Create Demo Project 2. Open-source on Github 3. Submit to the Xamarin Component Store
  13. 13. Moving Forward: Reading Up • Programming with Objective-C (Apple) • Binding Objective-C Libraries (Xamarin) • Binding Types Reference (Xamarin) • .NET Framework Design Guidelines (Microsoft)
  14. 14. Moving Forward: Practice • Remember: Practice makes perfect! • Examine other bindings in the mono/monotouch-bindings repository • Make small additions/fixes to existing bindings • Bind progressively larger libraries on your own
  15. 15. Q&A
  16. 16. THANK YOU

×