Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

NSOutlineView何もわからん:( 前編 / I Don't Understand A...

usagimaru
November 02, 2024

NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1

NSOutlineView何もわからん:( 前編
macOS native Symposium #10
パネルディスカッションにて使用した資料の一部です。

https://macos-native.connpass.com/event/331842/

usagimaru

November 02, 2024
Tweet

More Decks by usagimaru

Other Decks in Programming

Transcript

  1. macos-native.github.io 2024.11.2 NSOutlineViewԿ΋Θ͔ΒΜ © 2024 usagimaru macOS native Symposium #10,

    PD usagimaru #macosnative AppKitͰඒ͍͠Ξ΢τϥΠϯϏϡʔΛ࡞ΔͨΊͷ໛ࡧ @usagimaruma @[email protected] @usagimaru.bsky.social લฤ
  2. usagimaru͔Βͷ࿩୊ఏڙ © 2024 usagimaru લ ఏ ͷ ࿩ ৼ Δ

    ෣ ͍ macOS Sonoma͔Β෇͍ͨϙοϓΞχϝʔγϣϯ υϥοά&υϩοϓͱΞχϝʔγϣϯʢσϞʣ NSOutlineView໨ઢ߹ΘͤɿجຊͷΠϯλϥΫγϣϯͱ࢓૊Έ Ϟνϕʔγϣϯ 2 3 4 1
  3. NSTableView © 2024 usagimaru NSOutlineView • NSTableViewͷαϒΫϥε • UITableViewͱಉ͡DataSource/Delegateύλʔϯ •

    αϒΫϥε͕ͩɺઐ༻ͷDataSource/Delegate API͕ผʹଘࡏ NSTableViewDataSource NSTableViewDelegate NSOutlineViewDataSource NSOutlineViewDelegate
  4. © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍ άϧʔϓ4 ϑΝΠϧ͏

    ϑΝΠϧ͑ ʮϓϨʔϯʯελΠϧ ʢSafari, Xcode౳ʣ ηΫγϣϯϔομʔɺΧϥϜϔομʔ͸೚ҙ σ ỹ ε Ϋ ϩ ồ δ Ỿ Π ϯ σ ϯ τ
  5. © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍ άϧʔϓ4 ϑΝΠϧ͏

    ϑΝΠϧ͑ ςʔϒϧදݱ ʢฒ΂ସؚ͑Ήʣ ϑΥϧμ ϑΥϧμ ϑΥϧμ ॻྨ ॻྨ ϑΥϧμ ॻྨ ॻྨ -- -- -- 1.6 MB 34.3 MB -- 12 MB 4 KB ෳ਺ྻ छྨ αΠζ ໊લ ΧϥϜϔομʔʢਪ঑ʣ
  6. ϑΝΠϧ ڞ༗ © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 Keynote ʮιʔεϦετʯελΠϧ ʢFinder,

    Mail, Calendar౳ʣ Α͘࢖͏߲໨ iCloud λά ৔ॴ ηΫγϣϯͷσΟεΫϩʔδϟϘλϯ ηΫγϣϯϔομʔʢ։ดՄೳʣ ΞΠςϜʢ։ดՄೳʣ ΞΠςϜʢ։ดෆՄೳʣ α Π υ ό ồ 1ྻ
  7. NSOutlineView © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍ άϧʔϓ4

    ϑΝΠϧ͏ ϑΝΠϧ͑ πϦʔߏ଄Λ ߴ͔࣍ΒҰ౓ʹ၆ᛌͰ͖Δ
  8. NSOutlineView © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍ άϧʔϓ4

    ϑΝΠϧ͏ ϑΝΠϧ͑ D&DͰҠಈ ʢ֊૚Λӽ͑ΒΕΔʣ ϑΝΠϧ͋
  9. άϧʔϓ2 NSOutlineView © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍

    άϧʔϓ4 ϑΝΠϧ͏ ϑΝΠϧ͑ D&DͰෳ਺Ҡಈ ʢҰͭͷҠಈઌʹૠೖʣ ϑΝΠϧ͋
  10. NSOutlineView © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍ άϧʔϓ4

    ϑΝΠϧ͏ ϑΝΠϧ͑ άϧʔϓʹ௚઀D&D ʢάϧʔϓʹҠಈɾ௥ՃͰ͖Δʣ ϑΝΠϧ͋
  11. NSOutlineView © 2024 usagimaru άϧʔϓ1 άϧʔϓ2 άϧʔϓ3 ϑΝΠϧ͋ ϑΝΠϧ͍ άϧʔϓ4

    ϑΝΠϧ͏ ϑΝΠϧ͑ ·ͱΊͯ ίϯςΫετϝχϡʔ ίϐʔ ௐ΂Δ ڞ༗... ৘ใΛදࣔ