欢迎来到天天文库
浏览记录
ID:32796430
大小:4.53 MB
页数:239页
时间:2019-02-15
《Cocoa Fundamentals Guide 20101213》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、CocoaFundamentalsGuideContentsIntroduction9OrganizationofThisDocument9SeeAlso10WhatIsCocoa?11TheCocoaEnvironment11IntroducingCocoa11HowCocoaFitsintoOSX13HowCocoaFitsintoiOS15FeaturesofaCocoaApplication17TheDevelopmentEnvironment20PlatformSDKs21OverviewofDevelopmentW
2、orkflows21Xcode22InterfaceBuilder24TheiOSSimulatorApplication26PerformanceApplicationsandTools27TheCocoaFrameworks30Foundation31AppKit(OSX)41UIKit(iOS)48ComparingAppKitandUIKitClasses55CoreData56OtherFrameworkswithaCocoaAPI58ABitofHistory59CocoaObjects61ASimpleCocoa
3、Command-LineTool61Object-OrientedProgrammingwithObjective-C63TheObjective-CAdvantage63TheDynamismofObjective-C64ExtensionstotheObjective-CLanguage65UsingObjective-C73TheRootClass762010-12-13
4、©2010AppleInc.AllRightsReserved.2ContentsNSObject77RootClass—andProtocol77O
5、verviewofRoot-ClassMethods78InterfaceConventions80InstanceandClassMethods80ObjectRetentionandDisposal81HowtheGarbageCollectorWorks82HowMemoryManagementWorks84ObjectCreation89AllocatinganObject89InitializinganObject90ThedeallocandfinalizeMethods98ClassFactoryMethods9
6、9Introspection101EvaluatingInheritanceRelationships101MethodImplementationandProtocolConformance102ObjectComparison103ObjectMutability105WhyMutableandImmutableObjectVariants?105ProgrammingwithMutableObjects107ClassClusters111WithoutClassClusters:SimpleConceptbutComp
7、lexInterface111WithClassClusters:SimpleConceptandSimpleInterface112CreatingInstances112ClassClusterswithMultiplePublicSuperclasses113CreatingSubclassesWithinaClassCluster114Toll-FreeBridging121CreatingaSingletonInstance123AddingBehaviortoaCocoaProgram126StartingUp12
8、6WhatHappensinthemainFunction126UsingaCocoaFramework128KindsofFrameworkClasses129CocoaAPIConventions130InheritingfromaCocoaClass133WhentoOverrideaMethod133WhentoMakeaSubclass136BasicSubclassDesign1382010-12-13
9、©2010AppleInc.AllRightsReserved.3ContentsTheFormofaSubcl
10、assDefinition138OverridingSuperclassMethods141InstanceVariables141EntryandExitPoints143InitializeorDecode?145StoringandAccessingProperties
此文档下载收益归作者所有