zoukankan      html  css  js  c++  java
  • bundle之principal class

    bundle之principal class

       In particular, every Cocoa loadable bundle contains a principal class. The code loading mechanism provided by the NSBundle class uses a bundle’s principal class as an entry point. Applications loading bundles can ask NSBundle to find the principal class and use the returned Class object to create an instance of that class.

    NSBundle finds the principal class in one of two ways. First, it looks for the NSPrincipalClass key in the bundle’s information property list. If the key is present, it uses the class named by the key’s value as the bundle’s principal class. If the key is not present or the key specifies a class that does not exist, NSBundle uses the first class loaded as the principal class. If the bundle is built with Xcode, the order of classes as viewed in the project determines the order in which they are loaded.

  • 相关阅读:
    javaScript快速入门
    解决编程式路由往同一地址跳转时会报错的情况
    babel 依赖
    路由拆分可以达到一定程度的性能优化
    正则的扩展
    设计模式
    mysql数据库
    php基本语法
    事件循环
    面向对象编程
  • 原文地址:https://www.cnblogs.com/tekkaman/p/3038305.html
Copyright © 2011-2022 走看看