Enviar búsqueda
Cargar
いまさら NSArray
•
3 recomendaciones
•
1,231 vistas
Tetsuya Kaneuchi
Seguir
Cocoa 勉強会関西での発表資料です。
Leer menos
Leer más
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 12
Descargar ahora
Descargar para leer sin conexión
Recomendados
Glueの開発環境(zeppelin)をrancherで作ってみる
Glueの開発環境(zeppelin)をrancherで作ってみる
cloudfish
データベース技術について
データベース技術について
yuu1988
今更だけどSqLite触ってみたよ
今更だけどSqLite触ってみたよ
Keisuke Oohata
これからはNo sqlの時代って本当ですか
これからはNo sqlの時代って本当ですか
yumi_chappy
оптические явления в атмосфере
оптические явления в атмосфере
богдан довгополый
Electro-Thermal and Semiconductivity Behaviour of Natural Sintered Complex Ca...
Electro-Thermal and Semiconductivity Behaviour of Natural Sintered Complex Ca...
Al Baha University
Paul Sansone JR
Paul Sansone JR
Sean Bradley
Markdayturismo
Markdayturismo
Marcadotecnia
Recomendados
Glueの開発環境(zeppelin)をrancherで作ってみる
Glueの開発環境(zeppelin)をrancherで作ってみる
cloudfish
データベース技術について
データベース技術について
yuu1988
今更だけどSqLite触ってみたよ
今更だけどSqLite触ってみたよ
Keisuke Oohata
これからはNo sqlの時代って本当ですか
これからはNo sqlの時代って本当ですか
yumi_chappy
оптические явления в атмосфере
оптические явления в атмосфере
богдан довгополый
Electro-Thermal and Semiconductivity Behaviour of Natural Sintered Complex Ca...
Electro-Thermal and Semiconductivity Behaviour of Natural Sintered Complex Ca...
Al Baha University
Paul Sansone JR
Paul Sansone JR
Sean Bradley
Markdayturismo
Markdayturismo
Marcadotecnia
Het Nieuwe Werken En Tijdregistratie
Het Nieuwe Werken En Tijdregistratie
Bieke Van Baelen
22 October 2012
22 October 2012
renabivens
Rise of Islam I: The Prophet
Rise of Islam I: The Prophet
ssclasstorremar
Granero leve-2012
Granero leve-2012
mapple2012
Regali equo solidali 2013
Regali equo solidali 2013
LiberoMondo
Correlation between corrosion inhibitive effect and quantum molecular structu...
Correlation between corrosion inhibitive effect and quantum molecular structu...
Al Baha University
Scopus author feedback
Scopus author feedback
Al Baha University
Scott Pechstein – Why buying 3rd party is still the most efficient advertisement
Scott Pechstein – Why buying 3rd party is still the most efficient advertisement
Sean Bradley
Checkpoint 2 - Cognição
Checkpoint 2 - Cognição
Natanael Bandeira
47. الوصية الخامسة سلسله عظات الوصايا العشر القس كرم لامعى صباح الأح...
47. الوصية الخامسة سلسله عظات الوصايا العشر القس كرم لامعى صباح الأح...
Ibrahimia Church Ftriends
Early civilizations
Early civilizations
ssclasstorremar
انشودة الرجاء فى ليل الشقاء منبر الكنيسه الإنجيليه بالإبراهيميه- ا...
انشودة الرجاء فى ليل الشقاء منبر الكنيسه الإنجيليه بالإبراهيميه- ا...
Ibrahimia Church Ftriends
Training and development
Training and development
Ankur Tiwari
ATM for India : STAGE 1 @ IDC
ATM for India : STAGE 1 @ IDC
rayr28
Egypt for world well being
Egypt for world well being
Ibrahimia Church Ftriends
وحي من جهة مصر القس كرم لامعى - ونبر الكنيسه الانجيليه بالابراهيميه
وحي من جهة مصر القس كرم لامعى - ونبر الكنيسه الانجيليه بالابراهيميه
Ibrahimia Church Ftriends
Mob sec
Mob sec
Ellada
الخطر ليهودى بروتكولات حكماء صهيون
الخطر ليهودى بروتكولات حكماء صهيون
Ibrahimia Church Ftriends
القس فاروق الديرى درس كتاب - الحنان- رحله فى سفر الاعمال (2)
القس فاروق الديرى درس كتاب - الحنان- رحله فى سفر الاعمال (2)
Ibrahimia Church Ftriends
Clean code
Clean code
Jean Carlo Machado
いま OS X アプリがアツい
いま OS X アプリがアツい
Tetsuya Kaneuchi
Dependency Injection FAQ
Dependency Injection FAQ
Tetsuya Kaneuchi
Más contenido relacionado
Destacado
Het Nieuwe Werken En Tijdregistratie
Het Nieuwe Werken En Tijdregistratie
Bieke Van Baelen
22 October 2012
22 October 2012
renabivens
Rise of Islam I: The Prophet
Rise of Islam I: The Prophet
ssclasstorremar
Granero leve-2012
Granero leve-2012
mapple2012
Regali equo solidali 2013
Regali equo solidali 2013
LiberoMondo
Correlation between corrosion inhibitive effect and quantum molecular structu...
Correlation between corrosion inhibitive effect and quantum molecular structu...
Al Baha University
Scopus author feedback
Scopus author feedback
Al Baha University
Scott Pechstein – Why buying 3rd party is still the most efficient advertisement
Scott Pechstein – Why buying 3rd party is still the most efficient advertisement
Sean Bradley
Checkpoint 2 - Cognição
Checkpoint 2 - Cognição
Natanael Bandeira
47. الوصية الخامسة سلسله عظات الوصايا العشر القس كرم لامعى صباح الأح...
47. الوصية الخامسة سلسله عظات الوصايا العشر القس كرم لامعى صباح الأح...
Ibrahimia Church Ftriends
Early civilizations
Early civilizations
ssclasstorremar
انشودة الرجاء فى ليل الشقاء منبر الكنيسه الإنجيليه بالإبراهيميه- ا...
انشودة الرجاء فى ليل الشقاء منبر الكنيسه الإنجيليه بالإبراهيميه- ا...
Ibrahimia Church Ftriends
Training and development
Training and development
Ankur Tiwari
ATM for India : STAGE 1 @ IDC
ATM for India : STAGE 1 @ IDC
rayr28
Egypt for world well being
Egypt for world well being
Ibrahimia Church Ftriends
وحي من جهة مصر القس كرم لامعى - ونبر الكنيسه الانجيليه بالابراهيميه
وحي من جهة مصر القس كرم لامعى - ونبر الكنيسه الانجيليه بالابراهيميه
Ibrahimia Church Ftriends
Mob sec
Mob sec
Ellada
الخطر ليهودى بروتكولات حكماء صهيون
الخطر ليهودى بروتكولات حكماء صهيون
Ibrahimia Church Ftriends
القس فاروق الديرى درس كتاب - الحنان- رحله فى سفر الاعمال (2)
القس فاروق الديرى درس كتاب - الحنان- رحله فى سفر الاعمال (2)
Ibrahimia Church Ftriends
Clean code
Clean code
Jean Carlo Machado
Destacado
(20)
Het Nieuwe Werken En Tijdregistratie
Het Nieuwe Werken En Tijdregistratie
22 October 2012
22 October 2012
Rise of Islam I: The Prophet
Rise of Islam I: The Prophet
Granero leve-2012
Granero leve-2012
Regali equo solidali 2013
Regali equo solidali 2013
Correlation between corrosion inhibitive effect and quantum molecular structu...
Correlation between corrosion inhibitive effect and quantum molecular structu...
Scopus author feedback
Scopus author feedback
Scott Pechstein – Why buying 3rd party is still the most efficient advertisement
Scott Pechstein – Why buying 3rd party is still the most efficient advertisement
Checkpoint 2 - Cognição
Checkpoint 2 - Cognição
47. الوصية الخامسة سلسله عظات الوصايا العشر القس كرم لامعى صباح الأح...
47. الوصية الخامسة سلسله عظات الوصايا العشر القس كرم لامعى صباح الأح...
Early civilizations
Early civilizations
انشودة الرجاء فى ليل الشقاء منبر الكنيسه الإنجيليه بالإبراهيميه- ا...
انشودة الرجاء فى ليل الشقاء منبر الكنيسه الإنجيليه بالإبراهيميه- ا...
Training and development
Training and development
ATM for India : STAGE 1 @ IDC
ATM for India : STAGE 1 @ IDC
Egypt for world well being
Egypt for world well being
وحي من جهة مصر القس كرم لامعى - ونبر الكنيسه الانجيليه بالابراهيميه
وحي من جهة مصر القس كرم لامعى - ونبر الكنيسه الانجيليه بالابراهيميه
Mob sec
Mob sec
الخطر ليهودى بروتكولات حكماء صهيون
الخطر ليهودى بروتكولات حكماء صهيون
القس فاروق الديرى درس كتاب - الحنان- رحله فى سفر الاعمال (2)
القس فاروق الديرى درس كتاب - الحنان- رحله فى سفر الاعمال (2)
Clean code
Clean code
Más de Tetsuya Kaneuchi
いま OS X アプリがアツい
いま OS X アプリがアツい
Tetsuya Kaneuchi
Dependency Injection FAQ
Dependency Injection FAQ
Tetsuya Kaneuchi
ワタシはSingletonがキライだ
ワタシはSingletonがキライだ
Tetsuya Kaneuchi
Core Animation と View
Core Animation と View
Tetsuya Kaneuchi
Core Data の概要と NSIncrementalStore
Core Data の概要と NSIncrementalStore
Tetsuya Kaneuchi
WebViewでエラーページを表示する話
WebViewでエラーページを表示する話
Tetsuya Kaneuchi
MVCもやもや話
MVCもやもや話
Tetsuya Kaneuchi
Más de Tetsuya Kaneuchi
(7)
いま OS X アプリがアツい
いま OS X アプリがアツい
Dependency Injection FAQ
Dependency Injection FAQ
ワタシはSingletonがキライだ
ワタシはSingletonがキライだ
Core Animation と View
Core Animation と View
Core Data の概要と NSIncrementalStore
Core Data の概要と NSIncrementalStore
WebViewでエラーページを表示する話
WebViewでエラーページを表示する話
MVCもやもや話
MVCもやもや話
Último
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
WSO2
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
Toru Tamaki
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
Toru Tamaki
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NTT DATA Technology & Innovation
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
sn679259
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
iPride Co., Ltd.
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Hiroshi Tomioka
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
atsushi061452
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
CRI Japan, Inc.
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
CRI Japan, Inc.
Último
(12)
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
いまさら NSArray
1.
いまさら NSArray かねうちてつや Cocoa勉強会関西 2013.12.14
2.
NSArray • Foundation のコレクションクラスのひとつ • インデックス付きでオブジェクトを格納 • クラスクラスタを構成 • 関連: NSMutableArray,
NSSet
3.
クラスクラスタ • NSArray そのものは抽象クラス • イニシャライザが具象サブクラスのインスタンスを生成 • 具象サブクラスは非公開 • サブクラス化できる設計になっている
4.
NSArray のサブクラス • count と
objectAtIndex: をオーバーライドすれば完成 • 好きなデータに NSArray インタフェースでアクセス • 他のオブジェクト、ファイルシステム、データベース… • 必ずしもデータをメモリに置かなくてもよい
5.
NSArray ビュー • もともとは NSArray
になっていないデータに NSArray としてアクセスできるようにする • 元のデータが変更されるとビューにも反映される • NSArray は多くのフレームワークで充実したサポートが あるので利用用途が広い • NSSet ビューとかも考えられる
6.
NSArray ビューの例 • 別の NSArray
の逆順に並んでいる NSArray ビュー • 2 つの NSArray を連結した NSArray ビュー • 文字列の1文字ずつを要素として持つ NSArray ビュー
7.
Demo
8.
NSArray のプロパティ • あるオブジェクトが持つコレクションへのアクセスを外部に提 供したい • NSMutableArray を返してしまうと、オブジェクト外から変 更される可能性があってヤダ • • • そもそも
NSArray じゃないんだけど コレクションの中身を lazy に初期化したい immutable な NSArray ビューを返しましょう!
9.
KVC と NSArray • サブクラスを作らなくても
NSArray ビューを返せる • • • - (NSUInteger)countOfElements - (id)objectInElementsAtIndex:(NSUInteger)index; [obj valueForKey:@“elements”]
10.
Demo
11.
まとめ • NSArray のサブクラスは簡単に作れる • NSArray ビューはいろいろ用途があって楽しい • KVC
でサブクラスなしで NSArray ビューを公開できる • KVC で NSSet や mutable コレクションも返せる
12.
参考 • NSArray Class Reference • Key-Value
Coding Programming Guide • Key-Value Coding Accessor Methods
Descargar ahora