├── .gitignore ├── LICENSE ├── README.md ├── SCXcodeEditorInset.xcodeproj └── project.pbxproj └── SCXcodeEditorInset ├── DVTSourceTextView+SCXcodeEditorInset.h ├── DVTSourceTextView+SCXcodeEditorInset.m ├── NSTabView+SCXcodeEditorInset.h ├── NSTabView+SCXcodeEditorInset.m ├── SCXcodeEditorInset.h ├── SCXcodeEditorInset.m ├── SCXcodeEditorInsetCommon.h ├── SCXcodeEditorInsetCommon.m ├── Supporting Files ├── SCXcodeEditorInset-Info.plist └── SCXcodeEditorInset-Prefix.pch └── Xcode Headers ├── DVTCompletingTextView.h ├── DVTSourceTextView.h ├── DVTSplitView.h ├── DVTViewController.h ├── IDEEditor.h ├── IDESourceCodeEditor.h ├── IDESourceCodeEditorContainerView.h ├── IDEViewController.h └── IDEWorkspaceWindowController.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Deprecated as of Xcode 10 with the introduction of over-scrolling 2 | 3 | 4 | # SCXcodeEditorInset 5 | SCXcodeEditorInset is a Xcode plugin that adds an empty (configurable) space to the end of the editor text view 6 | ![](https://drive.google.com/u/0/uc?id=17_XP-woHcBW86PjJ8Sxk4KETUhrdVvY8&export=download) 7 | 8 | The amount of empty space is configurable through the View/Editor Inset/Size slider which goes from full page height to zero. It defaults to 30%, as highlighted in the screenshot. 9 | 10 | #### Installation 11 | - Through [Alcatraz](https://github.com/Alcatraz/Alcatraz) 12 | 13 | - Download the sources, build the project and restart Xcode 14 | 15 | - Download SCXcodeEditorInset.xcplugin.zip from the releases tab, unzip and move it to the Xcode plugins folder ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SCXcodeEditorInset.xcplugin 16 | 17 | - If you encounter any issues you can uninstall it by removing the ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SCXcodeEditorInset.xcplugin folder 18 | 19 | #### License 20 | SCXcodeEditorInset is released under the GNU GENERAL PUBLIC LICENSE (see the LICENSE file) 21 | 22 | #### Contact 23 | Any suggestions or improvements are more than welcome. Feel free to contact me at [stefan.ceriu@gmail.com](mailto:stefan.ceriu@gmail.com) or [@stefanceriu](https://twitter.com/stefanceriu). 24 | -------------------------------------------------------------------------------- /SCXcodeEditorInset.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1822804A1B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.m in Sources */ = {isa = PBXBuildFile; fileRef = 182280491B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.m */; }; 11 | 182F51CD1B15B33B009A89F6 /* SCXcodeEditorInset.m in Sources */ = {isa = PBXBuildFile; fileRef = 182F51CC1B15B33B009A89F6 /* SCXcodeEditorInset.m */; }; 12 | 182F51D41B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.m in Sources */ = {isa = PBXBuildFile; fileRef = 182F51D31B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.m */; }; 13 | 182F51D71B15B416009A89F6 /* SCXcodeEditorInsetCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 182F51D61B15B416009A89F6 /* SCXcodeEditorInsetCommon.m */; }; 14 | 185B2DDA1B19B9550011EC0E /* IDEKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 185B2DD91B19B9550011EC0E /* IDEKit.framework */; }; 15 | 1883080A1A7411830005DF40 /* DVTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 188308091A7411830005DF40 /* DVTKit.framework */; }; 16 | 18FE09B61707639E00118FEB /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18FE09B51707639E00118FEB /* Cocoa.framework */; }; 17 | 8742532317307161001C947C /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8742532217307161001C947C /* QuartzCore.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 18072F771B19B6B1001C1FA3 /* IDEWorkspaceWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDEWorkspaceWindowController.h; sourceTree = ""; }; 22 | 182280481B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTabView+SCXcodeEditorInset.h"; sourceTree = ""; }; 23 | 182280491B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSTabView+SCXcodeEditorInset.m"; sourceTree = ""; }; 24 | 182F51CB1B15B33B009A89F6 /* SCXcodeEditorInset.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SCXcodeEditorInset.h; sourceTree = ""; }; 25 | 182F51CC1B15B33B009A89F6 /* SCXcodeEditorInset.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SCXcodeEditorInset.m; sourceTree = ""; }; 26 | 182F51CF1B15B38C009A89F6 /* SCXcodeEditorInset-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "SCXcodeEditorInset-Info.plist"; sourceTree = ""; }; 27 | 182F51D01B15B38C009A89F6 /* SCXcodeEditorInset-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "SCXcodeEditorInset-Prefix.pch"; sourceTree = ""; }; 28 | 182F51D21B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "DVTSourceTextView+SCXcodeEditorInset.h"; sourceTree = ""; }; 29 | 182F51D31B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "DVTSourceTextView+SCXcodeEditorInset.m"; sourceTree = ""; }; 30 | 182F51D51B15B416009A89F6 /* SCXcodeEditorInsetCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SCXcodeEditorInsetCommon.h; sourceTree = ""; }; 31 | 182F51D61B15B416009A89F6 /* SCXcodeEditorInsetCommon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SCXcodeEditorInsetCommon.m; sourceTree = ""; }; 32 | 185B2DD91B19B9550011EC0E /* IDEKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IDEKit.framework; path = /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework; sourceTree = ""; }; 33 | 186A85841B17AC11000EA05B /* IDEEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDEEditor.h; sourceTree = ""; }; 34 | 186A85851B17AC11000EA05B /* IDESourceCodeEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDESourceCodeEditor.h; sourceTree = ""; }; 35 | 186A85861B17AC11000EA05B /* IDEViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDEViewController.h; sourceTree = ""; }; 36 | 186A85871B17AC29000EA05B /* DVTViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVTViewController.h; sourceTree = ""; }; 37 | 188308091A7411830005DF40 /* DVTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DVTKit.framework; path = /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework; sourceTree = ""; }; 38 | 189229681B19A0CC0036357A /* IDESourceCodeEditorContainerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDESourceCodeEditorContainerView.h; sourceTree = ""; }; 39 | 189229691B19A0E90036357A /* DVTSplitView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVTSplitView.h; sourceTree = ""; }; 40 | 18B8426E1B15B27200C5518B /* DVTCompletingTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVTCompletingTextView.h; sourceTree = ""; }; 41 | 18B8427D1B15B27200C5518B /* DVTSourceTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVTSourceTextView.h; sourceTree = ""; }; 42 | 18FE09B21707639E00118FEB /* SCXcodeEditorInset.xcplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SCXcodeEditorInset.xcplugin; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 18FE09B51707639E00118FEB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 44 | 18FE09B81707639E00118FEB /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; 45 | 18FE09BA1707639E00118FEB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 46 | 8742532217307161001C947C /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 18FE09AF1707639E00118FEB /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 8742532317307161001C947C /* QuartzCore.framework in Frameworks */, 55 | 1883080A1A7411830005DF40 /* DVTKit.framework in Frameworks */, 56 | 18FE09B61707639E00118FEB /* Cocoa.framework in Frameworks */, 57 | 185B2DDA1B19B9550011EC0E /* IDEKit.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 182F51CE1B15B38C009A89F6 /* Supporting Files */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 182F51CF1B15B38C009A89F6 /* SCXcodeEditorInset-Info.plist */, 68 | 182F51D01B15B38C009A89F6 /* SCXcodeEditorInset-Prefix.pch */, 69 | ); 70 | path = "Supporting Files"; 71 | sourceTree = ""; 72 | }; 73 | 18B8424F1B15B27200C5518B /* SCXcodeEditorInset */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 182F51CB1B15B33B009A89F6 /* SCXcodeEditorInset.h */, 77 | 182F51CC1B15B33B009A89F6 /* SCXcodeEditorInset.m */, 78 | 182F51D21B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.h */, 79 | 182F51D31B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.m */, 80 | 182280481B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.h */, 81 | 182280491B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.m */, 82 | 182F51D51B15B416009A89F6 /* SCXcodeEditorInsetCommon.h */, 83 | 182F51D61B15B416009A89F6 /* SCXcodeEditorInsetCommon.m */, 84 | 182F51CE1B15B38C009A89F6 /* Supporting Files */, 85 | 18B842681B15B27200C5518B /* Xcode Headers */, 86 | ); 87 | path = SCXcodeEditorInset; 88 | sourceTree = ""; 89 | }; 90 | 18B842681B15B27200C5518B /* Xcode Headers */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 18B8426E1B15B27200C5518B /* DVTCompletingTextView.h */, 94 | 18B8427D1B15B27200C5518B /* DVTSourceTextView.h */, 95 | 189229691B19A0E90036357A /* DVTSplitView.h */, 96 | 186A85871B17AC29000EA05B /* DVTViewController.h */, 97 | 186A85841B17AC11000EA05B /* IDEEditor.h */, 98 | 186A85851B17AC11000EA05B /* IDESourceCodeEditor.h */, 99 | 189229681B19A0CC0036357A /* IDESourceCodeEditorContainerView.h */, 100 | 186A85861B17AC11000EA05B /* IDEViewController.h */, 101 | 18072F771B19B6B1001C1FA3 /* IDEWorkspaceWindowController.h */, 102 | ); 103 | path = "Xcode Headers"; 104 | sourceTree = ""; 105 | }; 106 | 18FE09A91707639E00118FEB = { 107 | isa = PBXGroup; 108 | children = ( 109 | 18B8424F1B15B27200C5518B /* SCXcodeEditorInset */, 110 | 18FE09B41707639E00118FEB /* Frameworks */, 111 | 18FE09B31707639E00118FEB /* Products */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | 18FE09B31707639E00118FEB /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 18FE09B21707639E00118FEB /* SCXcodeEditorInset.xcplugin */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | 18FE09B41707639E00118FEB /* Frameworks */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 18FE09B81707639E00118FEB /* AppKit.framework */, 127 | 18FE09B51707639E00118FEB /* Cocoa.framework */, 128 | 188308091A7411830005DF40 /* DVTKit.framework */, 129 | 18FE09BA1707639E00118FEB /* Foundation.framework */, 130 | 185B2DD91B19B9550011EC0E /* IDEKit.framework */, 131 | 8742532217307161001C947C /* QuartzCore.framework */, 132 | ); 133 | name = Frameworks; 134 | sourceTree = ""; 135 | }; 136 | /* End PBXGroup section */ 137 | 138 | /* Begin PBXNativeTarget section */ 139 | 18FE09B11707639E00118FEB /* SCXcodeEditorInset */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 18FE09C41707639E00118FEB /* Build configuration list for PBXNativeTarget "SCXcodeEditorInset" */; 142 | buildPhases = ( 143 | 18FE09AE1707639E00118FEB /* Sources */, 144 | 18FE09AF1707639E00118FEB /* Frameworks */, 145 | 18FE09B01707639E00118FEB /* Resources */, 146 | ); 147 | buildRules = ( 148 | ); 149 | dependencies = ( 150 | ); 151 | name = SCXcodeEditorInset; 152 | productName = SCXcodeMinimap; 153 | productReference = 18FE09B21707639E00118FEB /* SCXcodeEditorInset.xcplugin */; 154 | productType = "com.apple.product-type.bundle"; 155 | }; 156 | /* End PBXNativeTarget section */ 157 | 158 | /* Begin PBXProject section */ 159 | 18FE09AA1707639E00118FEB /* Project object */ = { 160 | isa = PBXProject; 161 | attributes = { 162 | LastUpgradeCheck = 0710; 163 | ORGANIZATIONNAME = "Stefan Ceriu"; 164 | }; 165 | buildConfigurationList = 18FE09AD1707639E00118FEB /* Build configuration list for PBXProject "SCXcodeEditorInset" */; 166 | compatibilityVersion = "Xcode 3.2"; 167 | developmentRegion = English; 168 | hasScannedForEncodings = 0; 169 | knownRegions = ( 170 | en, 171 | ); 172 | mainGroup = 18FE09A91707639E00118FEB; 173 | productRefGroup = 18FE09B31707639E00118FEB /* Products */; 174 | projectDirPath = ""; 175 | projectRoot = ""; 176 | targets = ( 177 | 18FE09B11707639E00118FEB /* SCXcodeEditorInset */, 178 | ); 179 | }; 180 | /* End PBXProject section */ 181 | 182 | /* Begin PBXResourcesBuildPhase section */ 183 | 18FE09B01707639E00118FEB /* Resources */ = { 184 | isa = PBXResourcesBuildPhase; 185 | buildActionMask = 2147483647; 186 | files = ( 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | }; 190 | /* End PBXResourcesBuildPhase section */ 191 | 192 | /* Begin PBXSourcesBuildPhase section */ 193 | 18FE09AE1707639E00118FEB /* Sources */ = { 194 | isa = PBXSourcesBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | 182F51D71B15B416009A89F6 /* SCXcodeEditorInsetCommon.m in Sources */, 198 | 182F51CD1B15B33B009A89F6 /* SCXcodeEditorInset.m in Sources */, 199 | 1822804A1B19B54600D22D55 /* NSTabView+SCXcodeEditorInset.m in Sources */, 200 | 182F51D41B15B3CF009A89F6 /* DVTSourceTextView+SCXcodeEditorInset.m in Sources */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | /* End PBXSourcesBuildPhase section */ 205 | 206 | /* Begin XCBuildConfiguration section */ 207 | 18FE09C21707639E00118FEB /* Debug */ = { 208 | isa = XCBuildConfiguration; 209 | buildSettings = { 210 | ALWAYS_SEARCH_USER_PATHS = NO; 211 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 212 | CLANG_CXX_LIBRARY = "libc++"; 213 | CLANG_WARN_CONSTANT_CONVERSION = YES; 214 | CLANG_WARN_EMPTY_BODY = YES; 215 | CLANG_WARN_ENUM_CONVERSION = YES; 216 | CLANG_WARN_INT_CONVERSION = YES; 217 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 218 | COPY_PHASE_STRIP = NO; 219 | ENABLE_TESTABILITY = YES; 220 | GCC_C_LANGUAGE_STANDARD = gnu99; 221 | GCC_DYNAMIC_NO_PIC = NO; 222 | GCC_ENABLE_OBJC_EXCEPTIONS = YES; 223 | GCC_OPTIMIZATION_LEVEL = 0; 224 | GCC_PREPROCESSOR_DEFINITIONS = ( 225 | "DEBUG=1", 226 | "$(inherited)", 227 | ); 228 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 229 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 230 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 231 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 232 | GCC_WARN_UNUSED_VARIABLE = YES; 233 | MACOSX_DEPLOYMENT_TARGET = 10.7; 234 | ONLY_ACTIVE_ARCH = YES; 235 | SDKROOT = macosx; 236 | }; 237 | name = Debug; 238 | }; 239 | 18FE09C31707639E00118FEB /* Release */ = { 240 | isa = XCBuildConfiguration; 241 | buildSettings = { 242 | ALWAYS_SEARCH_USER_PATHS = NO; 243 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 244 | CLANG_CXX_LIBRARY = "libc++"; 245 | CLANG_WARN_CONSTANT_CONVERSION = YES; 246 | CLANG_WARN_EMPTY_BODY = YES; 247 | CLANG_WARN_ENUM_CONVERSION = YES; 248 | CLANG_WARN_INT_CONVERSION = YES; 249 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 250 | COPY_PHASE_STRIP = YES; 251 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 252 | GCC_C_LANGUAGE_STANDARD = gnu99; 253 | GCC_ENABLE_OBJC_EXCEPTIONS = YES; 254 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 255 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 256 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 257 | GCC_WARN_UNUSED_VARIABLE = YES; 258 | MACOSX_DEPLOYMENT_TARGET = 10.7; 259 | SDKROOT = macosx; 260 | }; 261 | name = Release; 262 | }; 263 | 18FE09C51707639E00118FEB /* Debug */ = { 264 | isa = XCBuildConfiguration; 265 | buildSettings = { 266 | CLANG_ENABLE_OBJC_ARC = YES; 267 | COMBINE_HIDPI_IMAGES = YES; 268 | DEPLOYMENT_LOCATION = YES; 269 | DSTROOT = "$(HOME)"; 270 | FRAMEWORK_SEARCH_PATHS = ( 271 | "$(inherited)", 272 | "$(PROJECT_DIR)", 273 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/SharedFrameworks", 274 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Frameworks", 275 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/OtherFrameworks", 276 | ); 277 | GCC_ENABLE_OBJC_GC = ""; 278 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 279 | GCC_PREFIX_HEADER = "SCXcodeEditorInset/Supporting Files/SCXcodeEditorInset-Prefix.pch"; 280 | INFOPLIST_FILE = "SCXcodeEditorInset/Supporting Files/SCXcodeEditorInset-Info.plist"; 281 | INSTALL_PATH = "/Library/Application Support/Developer/Shared/Xcode/Plug-ins"; 282 | LIBRARY_SEARCH_PATHS = ( 283 | "$(inherited)", 284 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/PlugIns/IDESourceEditor.ideplugin/Contents/MacOS", 285 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS", 286 | ); 287 | PRODUCT_BUNDLE_IDENTIFIER = "com.stefanceriu.${PRODUCT_NAME:rfc1034identifier}"; 288 | PRODUCT_NAME = "$(TARGET_NAME)"; 289 | WRAPPER_EXTENSION = xcplugin; 290 | }; 291 | name = Debug; 292 | }; 293 | 18FE09C61707639E00118FEB /* Release */ = { 294 | isa = XCBuildConfiguration; 295 | buildSettings = { 296 | CLANG_ENABLE_OBJC_ARC = YES; 297 | COMBINE_HIDPI_IMAGES = YES; 298 | DEPLOYMENT_LOCATION = YES; 299 | DSTROOT = "$(HOME)"; 300 | FRAMEWORK_SEARCH_PATHS = ( 301 | "$(inherited)", 302 | "$(PROJECT_DIR)", 303 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/SharedFrameworks", 304 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Frameworks", 305 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/OtherFrameworks", 306 | ); 307 | GCC_ENABLE_OBJC_GC = ""; 308 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 309 | GCC_PREFIX_HEADER = "SCXcodeEditorInset/Supporting Files/SCXcodeEditorInset-Prefix.pch"; 310 | INFOPLIST_FILE = "SCXcodeEditorInset/Supporting Files/SCXcodeEditorInset-Info.plist"; 311 | INSTALL_PATH = "/Library/Application Support/Developer/Shared/Xcode/Plug-ins"; 312 | LIBRARY_SEARCH_PATHS = ( 313 | "$(inherited)", 314 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/PlugIns/IDESourceEditor.ideplugin/Contents/MacOS", 315 | "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS", 316 | ); 317 | PRODUCT_BUNDLE_IDENTIFIER = "com.stefanceriu.${PRODUCT_NAME:rfc1034identifier}"; 318 | PRODUCT_NAME = "$(TARGET_NAME)"; 319 | WRAPPER_EXTENSION = xcplugin; 320 | }; 321 | name = Release; 322 | }; 323 | /* End XCBuildConfiguration section */ 324 | 325 | /* Begin XCConfigurationList section */ 326 | 18FE09AD1707639E00118FEB /* Build configuration list for PBXProject "SCXcodeEditorInset" */ = { 327 | isa = XCConfigurationList; 328 | buildConfigurations = ( 329 | 18FE09C21707639E00118FEB /* Debug */, 330 | 18FE09C31707639E00118FEB /* Release */, 331 | ); 332 | defaultConfigurationIsVisible = 0; 333 | defaultConfigurationName = Release; 334 | }; 335 | 18FE09C41707639E00118FEB /* Build configuration list for PBXNativeTarget "SCXcodeEditorInset" */ = { 336 | isa = XCConfigurationList; 337 | buildConfigurations = ( 338 | 18FE09C51707639E00118FEB /* Debug */, 339 | 18FE09C61707639E00118FEB /* Release */, 340 | ); 341 | defaultConfigurationIsVisible = 0; 342 | defaultConfigurationName = Release; 343 | }; 344 | /* End XCConfigurationList section */ 345 | }; 346 | rootObject = 18FE09AA1707639E00118FEB /* Project object */; 347 | } 348 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/DVTSourceTextView+SCXcodeEditorInset.h: -------------------------------------------------------------------------------- 1 | // 2 | // DVTSourceTextView+SCXcodeEditorInset.h 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/26/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import "DVTSourceTextView.h" 10 | 11 | @interface DVTSourceTextView (SCXcodeEditorInset) 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/DVTSourceTextView+SCXcodeEditorInset.m: -------------------------------------------------------------------------------- 1 | // 2 | // DVTSourceTextView+SCXcodeEditorInset.m 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/26/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import "DVTSourceTextView+SCXcodeEditorInset.h" 10 | #import "SCXcodeEditorInsetCommon.h" 11 | #import "SCXcodeEditorInset.h" 12 | 13 | @implementation DVTSourceTextView (SCXcodeEditorInset) 14 | 15 | + (void)load 16 | { 17 | sc_swizzleInstanceMethod([self class], @selector(initWithFrame:textContainer:), @selector(sc_initWithFrame:textContainer:)); 18 | sc_swizzleInstanceMethod([self class], @selector(textContainerOrigin), @selector(sc_textContainerOrigin)); 19 | } 20 | 21 | - (id)sc_initWithFrame:(CGRect)frame textContainer:(id)textContainer 22 | { 23 | [self sc_initWithFrame:frame textContainer:textContainer]; 24 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sc_bottomInsetDidChange:) name:SCXcodeEditorInsetDidChangeInsetNotification object:nil]; 25 | 26 | return self; 27 | } 28 | 29 | - (NSPoint)sc_textContainerOrigin 30 | { 31 | return CGPointZero; 32 | } 33 | 34 | - (void)sc_bottomInsetDidChange:(NSNotification *)sender 35 | { 36 | [self sc_updateTextContainerBottomInset]; 37 | } 38 | 39 | - (void)sc_updateTextContainerBottomInset 40 | { 41 | NSInteger bottomInset = [[SCXcodeEditorInset sharedPlugin] editorInset] / 2.0f; 42 | 43 | if(self.textContainerInset.height == bottomInset) { 44 | return; 45 | } 46 | 47 | [self setTextContainerInset:NSMakeSize(0.0f, bottomInset)]; 48 | [self.layoutManager textContainerChangedGeometry:self.textContainer]; 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/NSTabView+SCXcodeEditorInset.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSTabView+SCXcodeEditorInset.h 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/30/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSTabView (SCXcodeEditorInset) 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/NSTabView+SCXcodeEditorInset.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSTabView+SCXcodeEditorInset.m 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/30/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import "NSTabView+SCXcodeEditorInset.h" 10 | #import "SCXcodeEditorInsetCommon.h" 11 | #import "SCXcodeEditorInset.h" 12 | 13 | @implementation NSTabView (SCXcodeEditorInset) 14 | 15 | + (void)load 16 | { 17 | sc_swizzleInstanceMethod([self class], @selector(resizeWithOldSuperviewSize:), @selector(sc_resizeWithOldSuperviewSize:)); 18 | } 19 | 20 | - (void)sc_resizeWithOldSuperviewSize:(NSSize)oldSize 21 | { 22 | [self sc_resizeWithOldSuperviewSize:oldSize]; 23 | 24 | [[NSNotificationCenter defaultCenter] postNotificationName:SCXcodeEditorInsetNSTabViewDidChangeFrameNotification object:self]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/SCXcodeEditorInset.h: -------------------------------------------------------------------------------- 1 | // 2 | // SCXcodeEditorInset.h 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/27/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | extern NSString *const kSCXcodeEditorBottomInsetValueKey; 10 | 11 | extern NSString *const SCXcodeEditorInsetNSTabViewDidChangeFrameNotification; 12 | extern NSString *const SCXcodeEditorInsetDidChangeInsetNotification; 13 | 14 | @interface SCXcodeEditorInset : NSObject 15 | 16 | + (SCXcodeEditorInset *)sharedPlugin; 17 | 18 | @property (nonatomic, assign, readonly) CGFloat editorInset; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/SCXcodeEditorInset.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCXcodeEditorInset.m 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/27/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import "SCXcodeEditorInset.h" 10 | #import "DVTSourceTextView+SCXcodeEditorInset.h" 11 | 12 | #import "IDESourceCodeEditor.h" 13 | #import "IDEWorkspaceWindowController.h" 14 | 15 | NSString *const kSCXcodeEditorBottomInsetPercentageKey = @"kSCXcodeEditorBottomInsetPercentageKey"; 16 | 17 | NSString *const SCXcodeEditorInsetNSTabViewDidChangeFrameNotification = @"SCXcodeEditorInsetNSTabViewDidChangeFrameNotification"; 18 | NSString *const SCXcodeEditorInsetDidChangeInsetNotification = @"SCXcodeEditorInsetDidChangeInsetNotification"; 19 | 20 | NSString *const IDESourceCodeEditorDidFinishSetupNotification = @"IDESourceCodeEditorDidFinishSetup"; 21 | 22 | NSString *const kViewMenuItemTitle = @"View"; 23 | NSString *const kEditorInsetMenuItemTitle = @"Editor Inset"; 24 | NSString *const kSizeMenuItemTitle = @"Size"; 25 | 26 | static SCXcodeEditorInset *sharedPlugin = nil; 27 | 28 | @interface SCXcodeEditorInset () 29 | 30 | @property (nonatomic, weak) IDEWorkspaceWindowController *workspaceWindowController; 31 | @property (nonatomic, assign) CGFloat editorInset; 32 | 33 | @end 34 | 35 | @implementation SCXcodeEditorInset 36 | 37 | + (void)pluginDidLoad:(NSBundle *)plugin 38 | { 39 | BOOL isApplicationXcode = [[[NSBundle mainBundle] infoDictionary][@"CFBundleName"] isEqual:@"Xcode"]; 40 | if (isApplicationXcode) { 41 | static dispatch_once_t onceToken; 42 | dispatch_once(&onceToken, ^{ 43 | sharedPlugin = [[self alloc] init]; 44 | }); 45 | } 46 | } 47 | 48 | + (SCXcodeEditorInset *)sharedPlugin 49 | { 50 | return sharedPlugin; 51 | } 52 | 53 | - (id)init 54 | { 55 | if (self = [super init]) { 56 | 57 | dispatch_async(dispatch_get_main_queue(), ^{ 58 | [self createMenuItem]; 59 | }); 60 | 61 | [[NSUserDefaults standardUserDefaults] registerDefaults:@{kSCXcodeEditorBottomInsetPercentageKey : @(0.3f)}]; 62 | 63 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onEditorDidFinishSetup:) name:IDESourceCodeEditorDidFinishSetupNotification object:nil]; 64 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onTabViewDidChangeFrame:) name:SCXcodeEditorInsetNSTabViewDidChangeFrameNotification object:nil]; 65 | } 66 | return self; 67 | } 68 | 69 | - (void)createMenuItem 70 | { 71 | NSMenuItem *viewMenuItem = [[NSApp mainMenu] itemWithTitle:kViewMenuItemTitle]; 72 | 73 | if(viewMenuItem == nil) { 74 | return; 75 | } 76 | 77 | [viewMenuItem.submenu addItem:[NSMenuItem separatorItem]]; 78 | 79 | NSMenuItem *editorInsetMenuItem = [[NSMenuItem alloc] initWithTitle:kEditorInsetMenuItemTitle action:nil keyEquivalent:@""]; 80 | [viewMenuItem.submenu addItem:editorInsetMenuItem]; 81 | 82 | 83 | NSMenu *editorInsetSubmenu = [[NSMenu alloc] init]; 84 | { 85 | NSView *sizeView = [[NSView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 225.0f, 20.0f)]; 86 | [sizeView setAutoresizingMask:NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin]; 87 | 88 | NSTextField *sizeViewTitleLabel = [[NSTextField alloc] initWithFrame:NSMakeRect(20.0f, 0.0f, 50.0f, 20.0f)]; 89 | [sizeViewTitleLabel setStringValue:kSizeMenuItemTitle]; 90 | [sizeViewTitleLabel setFont:[NSFont systemFontOfSize:14]]; 91 | [sizeViewTitleLabel setBezeled:NO]; 92 | [sizeViewTitleLabel setDrawsBackground:NO]; 93 | [sizeViewTitleLabel setEditable:NO]; 94 | [sizeViewTitleLabel setSelectable:NO]; 95 | [sizeView addSubview:sizeViewTitleLabel]; 96 | 97 | NSSlider *sizeSlider = [[NSSlider alloc] initWithFrame:CGRectMake(60.0f, 0.0f, 156.0f, 20.0f)]; 98 | [sizeSlider setMaxValue:1.0f]; 99 | [sizeSlider setMinValue:0.0f]; 100 | [sizeSlider setTarget:self]; 101 | [sizeSlider setAction:@selector(onSizeSliderValueChanged:)]; 102 | [sizeSlider setDoubleValue:[[[NSUserDefaults standardUserDefaults] objectForKey:kSCXcodeEditorBottomInsetPercentageKey] doubleValue]]; 103 | [sizeView addSubview:sizeSlider]; 104 | 105 | NSMenuItem *editorInsetSizeMenuItem = [[NSMenuItem alloc] init]; 106 | [editorInsetSizeMenuItem setView:sizeView]; 107 | [editorInsetSubmenu addItem:editorInsetSizeMenuItem]; 108 | } 109 | 110 | [editorInsetMenuItem setSubmenu:editorInsetSubmenu]; 111 | } 112 | 113 | - (void)onSizeSliderValueChanged:(NSSlider *)sender 114 | { 115 | NSEvent *event = [[NSApplication sharedApplication] currentEvent]; 116 | if(event.type != NSLeftMouseUp) { 117 | return; 118 | } 119 | 120 | [[NSUserDefaults standardUserDefaults] setObject:@(sender.doubleValue) forKey:kSCXcodeEditorBottomInsetPercentageKey]; 121 | [self updateEditorInset]; 122 | } 123 | 124 | - (void)onEditorDidFinishSetup:(NSNotification*)sender 125 | { 126 | self.workspaceWindowController = [[IDEWorkspaceWindowController workspaceWindowControllers] firstObject]; 127 | [self updateEditorInset]; 128 | } 129 | 130 | - (void)onTabViewDidChangeFrame:(NSNotification *)sender 131 | { 132 | [self updateEditorInset]; 133 | } 134 | 135 | - (void)updateEditorInset 136 | { 137 | CGFloat bottomInsetPercentage = [[[NSUserDefaults standardUserDefaults] objectForKey:kSCXcodeEditorBottomInsetPercentageKey] floatValue]; 138 | [self setEditorInset:CGRectGetHeight(self.workspaceWindowController.tabView.bounds) * bottomInsetPercentage]; 139 | 140 | [[NSNotificationCenter defaultCenter] postNotificationName:SCXcodeEditorInsetDidChangeInsetNotification object:nil]; 141 | } 142 | 143 | @end 144 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/SCXcodeEditorInsetCommon.h: -------------------------------------------------------------------------------- 1 | // 2 | // SCXcodeEditorInsetCommon.h 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/25/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | extern void sc_swizzleInstanceMethod(Class class, SEL originalSelector, SEL swizzledSelector); 12 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/SCXcodeEditorInsetCommon.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCXcodeEditorInsetCommon.m 3 | // SCXcodeEditorInset 4 | // 5 | // Created by Stefan Ceriu on 5/25/15. 6 | // Copyright (c) 2015 Stefan Ceriu. All rights reserved. 7 | // 8 | 9 | #import "SCXcodeEditorInsetCommon.h" 10 | 11 | void sc_swizzleInstanceMethod(Class class, SEL originalSelector, SEL swizzledSelector) { 12 | Method originalMethod = class_getInstanceMethod(class, originalSelector); 13 | Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector); 14 | if (class_addMethod(class, originalSelector, method_getImplementation(swizzledMethod), method_getTypeEncoding(swizzledMethod))) { 15 | class_replaceMethod(class, swizzledSelector, method_getImplementation(originalMethod), method_getTypeEncoding(originalMethod)); 16 | } else { 17 | method_exchangeImplementations(originalMethod, swizzledMethod); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Supporting Files/SCXcodeEditorInset-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.3 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | DVTPlugInCompatibilityUUIDs 26 | 27 | FEC992CC-CA4A-4CFD-8881-77300FCB848A 28 | C4A681B0-4A26-480E-93EC-1218098B9AA0 29 | A2E4D43F-41F4-4FB9-BB94-7177011C9AED 30 | AD68E85B-441B-4301-B564-A45E4919A6AD 31 | 63FC1C47-140D-42B0-BB4D-A10B2D225574 32 | 37B30044-3B14-46BA-ABAA-F01000C27B63 33 | 640F884E-CE55-4B40-87C0-8869546CAB7A 34 | 992275C1-432A-4CF7-B659-D84ED6D42D3F 35 | A16FF353-8441-459E-A50C-B071F53F51B7 36 | 9F75337B-21B4-4ADC-B558-F9CADF7073A7 37 | 992275C1-432A-4CF7-B659-D84ED6D42D3F 38 | E969541F-E6F9-4D25-8158-72DC3545A6C6 39 | 8DC44374-2B35-4C57-A6FE-2AD66A36AAD9 40 | 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 41 | AABB7188-E14E-4433-AD3B-5CD791EAD9A3 42 | 0420B86A-AA43-4792-9ED0-6FE0F2B16A13 43 | CC0D0F4F-05B3-431A-8F33-F84AFCB2C651 44 | 7265231C-39B4-402C-89E1-16167C4CC990 45 | F41BD31E-2683-44B8-AE7F-5F09E919790E 46 | ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C 47 | 1637F4D5-0B27-416B-A78D-498965D64877 48 | 49 | NSHumanReadableCopyright 50 | Copyright © 2013 Stefan Ceriu. All rights reserved. 51 | NSPrincipalClass 52 | 53 | XC4Compatible 54 | 55 | XCGCReady 56 | 57 | XCPluginHasUI 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Supporting Files/SCXcodeEditorInset-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'SCXcodeEditorInset' target in the 'SCXcodeEditorInset' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/DVTCompletingTextView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | #import 8 | 9 | @class DVTFoldingLayoutManager, DVTFoldingManager, DVTSourceCodeLanguage, DVTTextCompletionController, DVTTextCompletionDataSource, NSColor; 10 | 11 | @interface DVTCompletingTextView : NSTextView 12 | { 13 | DVTTextCompletionController *_completionController; 14 | DVTTextCompletionDataSource *_completionsDataSource; 15 | NSColor *_secondarySelectedTextBackgroundColor; 16 | unsigned long long _accessoryAnnotationWidth; 17 | unsigned long long _modifierFlagsAtLastSingleMouseDown; 18 | BOOL _tabSelectsNextPlaceholder; 19 | } 20 | 21 | + (id)readableTextPasteboardTypes; 22 | + (long long)scrollerKnobStyleForBackgroundColor:(id)arg1; 23 | + (id)_operatorChars; 24 | + (id)autoCompleteChars; 25 | + (id)identifierChars; 26 | + (id)_identifierCharsForImportStatements; 27 | + (BOOL)appSupportsActionMonitoring; 28 | @property(copy, nonatomic) NSColor *secondarySelectedTextBackgroundColor; // @synthesize secondarySelectedTextBackgroundColor=_secondarySelectedTextBackgroundColor; 29 | @property BOOL tabSelectsNextPlaceholder; // @synthesize tabSelectsNextPlaceholder=_tabSelectsNextPlaceholder; 30 | @property(readonly) DVTTextCompletionController *completionController; // @synthesize completionController=_completionController; 31 | @property unsigned long long modifierFlagsAtLastSingleMouseDown; // @synthesize modifierFlagsAtLastSingleMouseDown=_modifierFlagsAtLastSingleMouseDown; 32 | @property unsigned long long accessoryAnnotationWidth; // @synthesize accessoryAnnotationWidth=_accessoryAnnotationWidth; 33 | - (void)setMarkedText:(id)arg1 selectedRange:(struct _NSRange)arg2; 34 | - (void)becomeMainWindow; 35 | - (void)resignKeyWindow; 36 | - (void)becomeKeyWindow; 37 | - (BOOL)becomeFirstResponder; 38 | - (BOOL)resignFirstResponder; 39 | - (void)_invalidateDisplayForViewStatusChange; 40 | - (void)setBackgroundColor:(id)arg1; 41 | - (void)updateScrollerKnobStyle; 42 | - (BOOL)readSelectionFromPasteboard:(id)arg1 type:(id)arg2; 43 | - (id)attributedStringForCompletionPlaceholderCell:(id)arg1 atCharacterIndex:(unsigned long long)arg2 withDefaultAttributes:(id)arg3; 44 | - (void)doubleClickedOnCell:(id)arg1 inRect:(struct CGRect)arg2 atIndexInToken:(unsigned long long)arg3; 45 | - (void)clickedOnCell:(id)arg1 inRect:(struct CGRect)arg2 atIndexInToken:(unsigned long long)arg3; 46 | - (BOOL)isThereOnlyATokenAttachmentAtUserTextChange; 47 | - (void)replaceSelectedTokenWithTokenText; 48 | - (void)useSelectionForFind:(id)arg1; 49 | - (struct _NSRange)_characterRangeForRect:(struct CGRect)arg1; 50 | - (struct _NSRange)clipViewBoundsCharacterRange; 51 | - (struct _NSRange)visibleCharacterRange; 52 | - (void)mouseDown:(id)arg1; 53 | - (void)setNeedsDisplayInRect:(struct CGRect)arg1 avoidAdditionalLayout:(BOOL)arg2; 54 | - (void)drawRect:(struct CGRect)arg1; 55 | - (void)_drawRect:(struct CGRect)arg1 clip:(BOOL)arg2; 56 | - (void)_drawOverlayRect:(struct CGRect)arg1; 57 | - (void)setSelectedRange:(struct _NSRange)arg1; 58 | - (void)setSelectedRanges:(id)arg1 affinity:(unsigned long long)arg2 stillSelecting:(BOOL)arg3; 59 | - (void)_replaceFoldWithContents:(id)arg1; 60 | - (id)_formatBlockLiteralFromDeclaration:(id)arg1 lineCount:(unsigned long long *)arg2; 61 | - (void)textStorage:(id)arg1 didEndEditRange:(struct _NSRange)arg2 changeInLength:(long long)arg3; 62 | - (void)textStorage:(id)arg1 willEndEditRange:(struct _NSRange)arg2 changeInLength:(long long)arg3; 63 | - (id)textStorage; 64 | - (id)layoutManager; 65 | - (void)didInsertCompletionTextAtRange:(struct _NSRange)arg1; 66 | - (void)invalidateDisplayForRange:(struct _NSRange)arg1; 67 | - (unsigned long long)draggingEntered:(id)arg1; 68 | - (void)paste:(id)arg1; 69 | - (void)viewWillMoveToWindow:(id)arg1; 70 | - (void)removeFromSuperview; 71 | - (void)_mouseInside:(id)arg1; 72 | - (void)debugDumpCompletionState:(id)arg1; 73 | - (void)selectPreviousPlaceholder:(id)arg1; 74 | - (void)selectNextPlaceholder:(id)arg1; 75 | - (BOOL)handleInsertBackTab; 76 | - (BOOL)handleInsertTab; 77 | - (id)menuForEvent:(id)arg1; 78 | - (BOOL)handleCancel; 79 | - (void)previousCompletion:(id)arg1; 80 | - (void)nextCompletion:(id)arg1; 81 | - (void)complete:(id)arg1; 82 | - (BOOL)shouldChangeTextInRange:(struct _NSRange)arg1 replacementString:(id)arg2; 83 | - (void)deleteForward:(id)arg1; 84 | - (void)deleteBackward:(id)arg1; 85 | - (void)insertText:(id)arg1 replacementRange:(struct _NSRange)arg2; 86 | - (void)doCommandBySelector:(SEL)arg1; 87 | - (void)foldingLayoutManagerFoldsChanged:(id)arg1; 88 | - (id)layoutManager:(id)arg1 shouldUseTextBackgroundColor:(id)arg2 rectArray:(struct CGRect *)arg3 count:(unsigned long long)arg4 forCharacterRange:(struct _NSRange)arg5; 89 | - (id)layoutManager:(id)arg1 shouldUseTemporaryAttributes:(id)arg2 forDrawingToScreen:(BOOL)arg3 atCharacterIndex:(unsigned long long)arg4 effectiveRange:(struct _NSRange *)arg5; 90 | - (void)showMatchingBraceAtLocation:(id)arg1; 91 | - (void)autoHighlightMatchingBracketAtLocationIfNecessary:(unsigned long long)arg1; 92 | - (BOOL)shouldTryToCompleteOpeningBracketForStringOrAttributedStringToInsert:(id)arg1; 93 | - (BOOL)shouldTryToCompleteOpeningBracketForStringToInsert:(id)arg1; 94 | - (BOOL)shouldTryToCompleteOpeningBracketForStringToInsert:(id)arg1 usingLanguage:(id)arg2; 95 | - (BOOL)_moveToNextPlaceholderFromCharacterIndex:(unsigned long long)arg1 forward:(BOOL)arg2 onlyIfNearby:(BOOL)arg3; 96 | - (struct _NSRange)_findString:(id)arg1 inString:(id)arg2 fromRange:(struct _NSRange)arg3 limitRange:(struct _NSRange)arg4 forward:(BOOL)arg5 wrap:(BOOL)arg6; 97 | - (struct _NSRange)rangeOfPlaceholderFromCharacterIndex:(unsigned long long)arg1 forward:(BOOL)arg2 wrap:(BOOL)arg3 limit:(unsigned long long)arg4; 98 | - (BOOL)selectFirstPlaceholderInCharacterRange:(struct _NSRange)arg1; 99 | - (BOOL)handleSelectPreviousPlaceholder; 100 | - (BOOL)handleSelectNextPlaceholder; 101 | - (id)ghostComplementTextColor; 102 | - (BOOL)shouldAutoCompleteAtLocation:(unsigned long long)arg1; 103 | - (BOOL)shouldSuppressTextCompletion; 104 | @property(readonly) double autoCompletionDelay; 105 | - (id)contextForCompletionStrategiesAtWordStartLocation:(unsigned long long)arg1; 106 | @property(readonly) DVTTextCompletionDataSource *completionsDataSource; 107 | - (struct _NSRange)wordRangeAtLocation:(unsigned long long)arg1; 108 | @property(readonly) DVTSourceCodeLanguage *language; 109 | - (struct CGRect)frameForRange:(struct _NSRange)arg1; 110 | - (void)dealloc; 111 | - (id)initWithCoder:(id)arg1; 112 | - (id)initWithFrame:(struct CGRect)arg1; 113 | - (id)initWithFrame:(struct CGRect)arg1 textContainer:(id)arg2; 114 | - (void)_dvtCommonInit; 115 | - (id)currentTheme; 116 | @property(readonly) DVTFoldingManager *foldingManager; 117 | @property(readonly) DVTFoldingLayoutManager *foldingLayoutManager; 118 | - (BOOL)removeMenusNotInWhiteList:(id)arg1 fromMenu:(id)arg2 removeSeparators:(BOOL)arg3; 119 | - (id)cell; 120 | - (id)selectedCell; 121 | - (id)accessibilityAttributeValue:(id)arg1; 122 | 123 | @end 124 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/DVTSourceTextView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | #import "DVTCompletingTextView.h" 8 | 9 | @class DVTAnnotationManager, DVTHashTable, DVTMutableRangeArray, DVTObservingToken, DVTTextAnnotationIndicatorAnimation, DVTTextDocumentLocation, DVTTextPageGuideVisualization, NSAnimation, NSArray, NSColor, NSDictionary, NSMutableArray, NSString, NSTimer, NSView, NSWindow; 10 | 11 | @interface DVTSourceTextView : DVTCompletingTextView 12 | { 13 | unsigned long long _oldFocusLocation; 14 | NSAnimation *_blockAnimation; 15 | struct CGPoint _lastMouseMovedLocation; 16 | struct _NSRange _foldingHoverRange; 17 | DVTTextAnnotationIndicatorAnimation *_annotationIndicatorAnimation; 18 | NSArray *_temporaryLinkRanges; 19 | unsigned long long _temporaryLinkHoverModifierFlags; 20 | unsigned long long _temporaryLinkHoverAltModifierFlags; 21 | NSArray *_clickedTemporaryLinkRanges; 22 | NSMutableArray *_clickedLinkProgressIndicators; 23 | struct _NSRange _ghostStringRange; 24 | NSTimer *_autoHighlightTokenTimer; 25 | DVTObservingToken *_autoHighlightTextCompletionObserver; 26 | DVTMutableRangeArray *_autoHighlightTokenRanges; 27 | NSTimer *_autoHighlightTokenMenuTimer; 28 | struct _NSRange _autoHighlightTokenMenuRange; 29 | double _autoHighlightTokenMenuAnimationDuration; 30 | NSTimer *_autoHighlightTokenMenuAnimationTimer; 31 | double _autoHighlightTokenMenuAnimationStartTime; 32 | NSWindow *_autoHighlightTokenWindow; 33 | DVTMutableRangeArray *_tokenizedEditingTokenRanges; 34 | unsigned long long _tokenizedEditingEditedTokenIndex; 35 | unsigned long long _tokenizedEditingDeferedOffset; 36 | struct _NSRange _tokenizedEditingSelectionRange; 37 | NSColor *_tokenizedEditingTokenColors[4]; 38 | NSArray *_foundLocations; 39 | DVTTextDocumentLocation *_currentFoundLocation; 40 | NSMutableArray *_visualizations; 41 | unsigned long long _pageGuideColumn; 42 | DVTTextPageGuideVisualization *_pageGuideVisualization; 43 | unsigned long long _locationOfAutoOpenedCloseBracket; 44 | unsigned long long _locationOfOpenBracePendingClose; 45 | NSTimer *_scrollbarMarkerUpdateTimer; 46 | DVTAnnotationManager *_annotationManager; 47 | DVTHashTable *_visibleViewAnnotations; 48 | NSView *_staticVisualizationView; 49 | int _findResultStyle; 50 | DVTMutableRangeArray *_typeOverCompletionRanges; 51 | DVTMutableRangeArray *_typeOverCompletionOpenRanges; 52 | NSString *_pendingTypeOverCompletion; 53 | struct _NSRange _pendingTypeOverCompletionOpenRange; 54 | BOOL _didChangeText; 55 | struct { 56 | unsigned int dDidFinishAnimatingScroll:1; 57 | unsigned int dDidScroll:1; 58 | unsigned int dColoringContext:1; 59 | unsigned int delegateRespondsToWillReturnPrintJobTitle:1; 60 | unsigned int temporaryLinkIsAlternate:1; 61 | unsigned int updatingInsertionPoint:1; 62 | unsigned int wasPostsFrameChangedNotifications:1; 63 | unsigned int doingDidChangeSelection:1; 64 | } _sFlags; 65 | BOOL _isDoingBatchEdit; 66 | BOOL _allowsCodeFolding; 67 | BOOL _showingCodeFocus; 68 | BOOL _lastMouseEventWasClick; 69 | BOOL _autoHighlightTokens; 70 | BOOL _tokenizedEditingEnabled; 71 | BOOL _animatesCurrentScroll; 72 | BOOL _disableUpdatingInsertionPointCount; 73 | BOOL _currentlyAutoCompletingBracket; 74 | BOOL _addedSpaceWhenAutoOpeningCloseBracket; 75 | BOOL _wrapsLines; 76 | BOOL _postsLayoutManagerNotifications; 77 | BOOL _scrollingInScrollView; 78 | BOOL _annotationLayoutScheduled; 79 | struct _NSRange _selectedRangeBeforeMouseDown; 80 | } 81 | 82 | + (id)autoCompleteChars; 83 | + (id)performanceLogAspect; 84 | + (id)foldingLogAspect; 85 | + (id)drawingLogAspect; 86 | + (void)initialize; 87 | @property BOOL postsLayoutManagerNotifications; // @synthesize postsLayoutManagerNotifications=_postsLayoutManagerNotifications; 88 | @property BOOL addedSpaceWhenAutoOpeningCloseBracket; // @synthesize addedSpaceWhenAutoOpeningCloseBracket=_addedSpaceWhenAutoOpeningCloseBracket; 89 | @property unsigned long long locationOfAutoOpenedCloseBracket; // @synthesize locationOfAutoOpenedCloseBracket=_locationOfAutoOpenedCloseBracket; 90 | @property(nonatomic, getter=isTokenizedEditingEnabled) BOOL tokenizedEditingEnabled; // @synthesize tokenizedEditingEnabled=_tokenizedEditingEnabled; 91 | @property struct _NSRange tokenizedEditingSelectionRange; // @synthesize tokenizedEditingSelectionRange=_tokenizedEditingSelectionRange; 92 | @property(readonly) NSArray *tokenizedEditingTokenRanges; // @synthesize tokenizedEditingTokenRanges=_tokenizedEditingTokenRanges; 93 | @property(nonatomic) BOOL autoHighlightTokens; // @synthesize autoHighlightTokens=_autoHighlightTokens; 94 | @property int findResultStyle; // @synthesize findResultStyle=_findResultStyle; 95 | @property(nonatomic) unsigned long long pageGuideColumn; // @synthesize pageGuideColumn=_pageGuideColumn; 96 | @property(readonly) NSArray *visualizations; // @synthesize visualizations=_visualizations; 97 | @property(retain) DVTAnnotationManager *annotationManager; // @synthesize annotationManager=_annotationManager; 98 | @property(nonatomic) struct _NSRange ghostStringRange; // @synthesize ghostStringRange=_ghostStringRange; 99 | @property unsigned long long temporaryLinkHoverAltModifierFlags; // @synthesize temporaryLinkHoverAltModifierFlags=_temporaryLinkHoverAltModifierFlags; 100 | @property unsigned long long temporaryLinkHoverModifierFlags; // @synthesize temporaryLinkHoverModifierFlags=_temporaryLinkHoverModifierFlags; 101 | @property(nonatomic) BOOL wrapsLines; // @synthesize wrapsLines=_wrapsLines; 102 | - (void)viewDidEndLiveResize; 103 | - (void)viewWillStartLiveResize; 104 | - (void)updateInsertionPointStateAndRestartTimer:(BOOL)arg1; 105 | - (void)resignKeyWindow; 106 | - (BOOL)resignFirstResponder; 107 | - (void)_invalidateDisplayForViewStatusChange; 108 | - (void)_reloadAnnotationProviders; 109 | - (void)_unloadAnnotationProviders; 110 | - (void)dvt_viewDidEndLiveAnimation; 111 | - (void)dvt_viewWillBeginLiveAnimation; 112 | - (void)_updateLayoutEstimation; 113 | - (void)drawFoundLocationsInRange:(struct _NSRange)arg1; 114 | - (id)_findResultUnderlineColor; 115 | - (id)_findResultCurrentUnderlineColor; 116 | - (id)_findResultGradient; 117 | - (id)_findResultCurrentGradient; 118 | - (void)setCurrentFoundLocation:(id)arg1; 119 | - (void)setFoundLocations:(id)arg1; 120 | - (void)unfoldAllComments:(id)arg1; 121 | - (void)foldAllComments:(id)arg1; 122 | - (void)unfoldAllMethods:(id)arg1; 123 | - (void)foldAllMethods:(id)arg1; 124 | - (void)unfoldRecursive:(id)arg1; 125 | - (void)unfold:(id)arg1; 126 | - (void)unfoldAll:(id)arg1; 127 | - (void)foldSelection:(id)arg1; 128 | - (void)foldRecursive:(id)arg1; 129 | - (void)fold:(id)arg1; 130 | - (BOOL)writeSelectionToPasteboard:(id)arg1 type:(id)arg2; 131 | - (BOOL)writeRTFSelectionToPasteboard:(id)arg1; 132 | - (id)writablePasteboardTypes; 133 | - (void)balance:(id)arg1; 134 | - (void)shiftLeft:(id)arg1; 135 | - (void)shiftRight:(id)arg1; 136 | - (void)_indentSelectionByNumberOfLevels:(long long)arg1; 137 | - (struct _NSRange)_indentInsertedTextIfNecessaryAtRange:(struct _NSRange)arg1; 138 | - (void)indentSelectionIfIndentable:(id)arg1; 139 | - (void)indentSelection:(id)arg1; 140 | - (void)commentAndUncommentCurrentLines:(id)arg1; 141 | - (void)moveCurrentLineDown:(id)arg1; 142 | - (void)moveCurrentLineUp:(id)arg1; 143 | - (void)_didChangeSelection:(id)arg1; 144 | - (void)PBX_toggleShowsInvisibleCharacters:(id)arg1; 145 | - (void)PBX_toggleShowsControlCharacters:(id)arg1; 146 | - (void)useSelectionForReplace:(id)arg1; 147 | - (BOOL)validateMenuItem:(id)arg1; 148 | - (BOOL)validateUserInterfaceItem:(id)arg1; 149 | - (void)layoutManager:(id)arg1 didCompleteLayoutForTextContainer:(id)arg2 atEnd:(BOOL)arg3; 150 | - (id)layoutManager:(id)arg1 shouldUseTemporaryAttributes:(id)arg2 forDrawingToScreen:(BOOL)arg3 atCharacterIndex:(unsigned long long)arg4 effectiveRange:(struct _NSRange *)arg5; 151 | - (BOOL)scrollRectToVisible:(struct CGRect)arg1; 152 | - (void)scrollPoint:(struct CGPoint)arg1; 153 | - (void)setMarkedText:(id)arg1 selectedRange:(struct _NSRange)arg2; 154 | - (BOOL)shouldChangeTextInRanges:(id)arg1 replacementStrings:(id)arg2; 155 | - (void)_invalidateAllRevealovers; 156 | - (BOOL)isEditable; 157 | - (void)moveDown:(id)arg1; 158 | - (void)moveUp:(id)arg1; 159 | - (BOOL)_couldHaveBlinkTimer; 160 | - (BOOL)_shouldHaveBlinkTimer; 161 | - (void)_centeredScrollRectToVisible:(struct CGRect)arg1 forceCenter:(BOOL)arg2; 162 | - (void)scrollViewDidSetFrameSize:(id)arg1; 163 | - (void)setFrameSize:(struct CGSize)arg1; 164 | - (void)_adjustAccessoryAnnotations; 165 | - (void)viewWillDraw; 166 | - (void)viewWillMoveToWindow:(id)arg1; 167 | - (void)breakUndoCoalescing; 168 | - (void)didChangeText; 169 | - (void)scrollRangeToVisible:(struct _NSRange)arg1 animate:(BOOL)arg2; 170 | - (void)didEndScrollInScrollView:(id)arg1; 171 | - (void)didBeginScrollInScrollView:(id)arg1; 172 | - (void)scrollRangeToVisible:(struct _NSRange)arg1; 173 | - (void)flagsChanged:(id)arg1; 174 | - (void)selectPreviousToken:(id)arg1; 175 | - (void)selectNextToken:(id)arg1; 176 | - (void)toggleTokenizedEditing:(id)arg1; 177 | @property(retain) NSColor *tokenizedEditingSelectedTokenBackgroundColor; // @dynamic tokenizedEditingSelectedTokenBackgroundColor; 178 | @property(retain) NSColor *tokenizedEditingSelectedTokenBorderColor; // @dynamic tokenizedEditingSelectedTokenBorderColor; 179 | @property(retain) NSColor *tokenizedEditingTokenBackgroundColor; // @dynamic tokenizedEditingTokenBackgroundColor; 180 | @property(retain) NSColor *tokenizedEditingTokenBorderColor; // @dynamic tokenizedEditingTokenBorderColor; 181 | - (id)tokenizedEditingTokenPathsForCharacterRange:(struct _NSRange)arg1; 182 | - (id)tokenPathsForCharacterRange:(struct _NSRange)arg1 displayOnly:(BOOL)arg2; 183 | - (void)textStorage:(id)arg1 didEndEditRange:(struct _NSRange)arg2 changeInLength:(long long)arg3; 184 | - (void)textStorage:(id)arg1 willEndEditRange:(struct _NSRange)arg2 changeInLength:(long long)arg3; 185 | - (unsigned long long)_indexOfTokenizedEditingRange:(struct _NSRange)arg1; 186 | - (void)updateTokenizedEditingRanges; 187 | - (void)_scheduleAutoHighlightTokenTimerIfNeeded; 188 | - (void)_autoHighlightTokenWithTimer:(id)arg1; 189 | - (void)tokenizableItemsForItemAtRange:(struct _NSRange)arg1 completionBlock:(id)arg2; 190 | - (void)_scheduleAutoHighlightTokenMenuTimerIfNeeded; 191 | - (void)_showAutoHighlightTokenMenuWithTimer:(id)arg1; 192 | - (id)_autoHighlightTokenWindowWithTokenRect:(struct CGRect)arg1; 193 | - (void)_scheduleAutoHighlightTokenMenuAnimationTimerIfNeeded; 194 | - (struct CGRect)_hitTestRectForAutoHighlightTokenWindow:(id)arg1; 195 | - (struct CGRect)_autoHighlightTokenRectAtPoint:(struct CGPoint)arg1; 196 | - (struct _NSRange)_autoHighlightTokenMenuRangeAtPoint:(struct CGPoint)arg1; 197 | - (void)_animateAutoHighlightTokenMenuWithTimer:(id)arg1; 198 | - (void)_popUpTokenMenu:(id)arg1; 199 | - (id)_autoHighlightTokenMenu; 200 | - (void)_clearAutoHighlightTokenMenu; 201 | - (void)_clearDisplayForAutoHighlightTokens; 202 | - (void)_displayAutoHighlightTokens; 203 | - (void)removeStaticVisualizationView; 204 | - (void)addStaticVisualizationView:(id)arg1; 205 | - (void)removeVisualization:(id)arg1 fadeOut:(BOOL)arg2 completionBlock:(id)arg3; 206 | - (void)addVisualization:(id)arg1 fadeIn:(BOOL)arg2 completionBlock:(id)arg3; 207 | - (void)adjustTypeOverCompletionForSelectionChange:(struct _NSRange)arg1; 208 | - (void)removeInvalidTypeOverCompletion; 209 | - (void)removeTypeOverCompletionIfAppropriateForEditedRange:(struct _NSRange)arg1 changeInLength:(long long)arg2; 210 | - (void)adjustTypeOverCompletionForEditedRange:(struct _NSRange)arg1 changeInLength:(long long)arg2; 211 | - (void)addTypeOverCompletionForRange:(struct _NSRange)arg1 openRange:(struct _NSRange)arg2; 212 | - (struct _NSRange)lastTypeOverCompletionRange; 213 | - (struct _NSRange)typeOverCompletionToSkipOverAtLocation:(unsigned long long)arg1 withInsertionText:(id)arg2; 214 | - (struct _NSRange)typeOverCompletionRangeFollowingLocation:(unsigned long long)arg1; 215 | - (void)didInsertCompletionTextAtRange:(struct _NSRange)arg1; 216 | - (struct _NSRange)_suggestedOpenRangeForTypeOverRange:(struct _NSRange)arg1; 217 | - (BOOL)shouldAutoCompleteAtLocation:(unsigned long long)arg1; 218 | - (BOOL)shouldSuppressTextCompletion; 219 | - (id)contextForCompletionStrategiesAtWordStartLocation:(unsigned long long)arg1; 220 | - (void)autoInsertCloseBrace; 221 | - (void)deleteExpressionBackward:(id)arg1; 222 | - (void)deleteExpressionForward:(id)arg1; 223 | - (void)moveExpressionBackwardAndModifySelection:(id)arg1; 224 | - (void)moveExpressionBackward:(id)arg1; 225 | - (void)moveExpressionForwardAndModifySelection:(id)arg1; 226 | - (void)moveExpressionForward:(id)arg1; 227 | - (void)deleteSubWordBackward:(id)arg1; 228 | - (void)deleteSubWordForward:(id)arg1; 229 | - (void)moveSubWordBackwardAndModifySelection:(id)arg1; 230 | - (void)moveSubWordForwardAndModifySelection:(id)arg1; 231 | - (void)moveSubWordBackward:(id)arg1; 232 | - (void)moveSubWordForward:(id)arg1; 233 | - (void)deleteForward:(id)arg1; 234 | - (void)deleteBackward:(id)arg1; 235 | - (void)pasteAndPreserveFormatting:(id)arg1; 236 | - (void)paste:(id)arg1; 237 | - (void)_paste:(id)arg1 indent:(BOOL)arg2; 238 | - (void)insertNewline:(id)arg1; 239 | - (BOOL)handleInsertTab; 240 | - (BOOL)handleSelectPreviousPlaceholder; 241 | - (BOOL)handleSelectNextPlaceholder; 242 | - (BOOL)isCandidateTypeOverString:(id)arg1; 243 | - (id)autoCloseStringForString:(id)arg1; 244 | - (void)insertText:(id)arg1; 245 | - (id)foldString; 246 | - (void)setFoldsFromString:(id)arg1; 247 | - (struct CGRect)frameForRange:(struct _NSRange)arg1 ignoreWhitespace:(BOOL)arg2; 248 | - (struct _NSRange)visibleParagraphRange; 249 | - (long long)_currentLineNumber; 250 | - (struct _NSRange)rangeOfCenterLine; 251 | - (void)doingBatchEdit:(BOOL)arg1; 252 | - (void)quickLookWithEvent:(id)arg1; 253 | - (void)rightMouseDown:(id)arg1; 254 | - (void)rightMouseUp:(id)arg1; 255 | - (void)mouseDragged:(id)arg1; 256 | - (void)mouseUp:(id)arg1; 257 | - (void)mouseDown:(id)arg1; 258 | - (void)scrollWheel:(id)arg1; 259 | - (void)_clipViewAncestorDidScroll:(id)arg1; 260 | - (void)_finishedAnimatingScroll; 261 | - (void)mouseMoved:(id)arg1; 262 | - (void)_mouseInside:(id)arg1; 263 | - (void)removeFromSuperview; 264 | - (void)viewDidMoveToWindow; 265 | - (void)_updateScrollerMarkersWithAnnotations:(id)arg1 clearCurrent:(BOOL)arg2; 266 | - (void)_refreshScrollerMarkers; 267 | - (double)_markForLineNumber:(unsigned long long)arg1; 268 | - (void)setUsesMarkedScrollbar:(BOOL)arg1; 269 | - (id)attributedStringForCompletionPlaceholderCell:(id)arg1 atCharacterIndex:(unsigned long long)arg2 withDefaultAttributes:(id)arg3; 270 | - (void)clickedOnCell:(id)arg1 inRect:(struct CGRect)arg2 atIndexInToken:(unsigned long long)arg3; 271 | - (void)_didClickOnTemporaryLinkWithEvent:(id)arg1; 272 | - (void)_updateTemporaryLinkUnderMouseForEvent:(id)arg1; 273 | - (unsigned long long)_nonBlankCharIndexUnderMouse; 274 | - (void)_clearClickedLinkProgressIndicators; 275 | - (void)_adjustClickedLinkProgressIndicators; 276 | - (void)_adjustClickedLinkProgressIndicator:(id)arg1 withRect:(struct CGRect)arg2; 277 | - (void)_showClickedLinkProgressIndicators; 278 | - (void)_invalidateClickedLinks; 279 | - (id)_clickedLinkProgressIndicatorWithRect:(struct CGRect)arg1; 280 | - (void)_clearTemporaryLinkRanges; 281 | - (void)_setTemporaryLinkRanges:(id)arg1 isAlternate:(BOOL)arg2; 282 | - (void)animation:(id)arg1 didReachProgressMark:(float)arg2; 283 | - (void)animationDidEnd:(id)arg1; 284 | - (void)animationDidStop:(id)arg1; 285 | - (BOOL)animationShouldStart:(id)arg1; 286 | - (void)stopBlockHighlighting; 287 | - (void)startBlockHighlighting; 288 | - (void)focusLocationMayHaveChanged:(id)arg1; 289 | - (void)toggleCodeFocus:(id)arg1; 290 | - (void)_drawViewBackgroundInRect:(struct CGRect)arg1; 291 | - (void)_drawTokensInRect:(struct CGRect)arg1; 292 | - (void)_drawCaretForTextAnnotationsInRect:(struct CGRect)arg1; 293 | - (void)drawTextAnnotationsInRect:(struct CGRect)arg1; 294 | - (long long)_drawRoundedBackgroundForItem:(id)arg1 dynamicItem:(id)arg2; 295 | - (id)_roundedRect:(struct CGRect)arg1 withRadius:(double)arg2; 296 | - (unsigned long long)_drawBlockBackground:(struct CGRect)arg1 atLocation:(unsigned long long)arg2 forItem:(id)arg3 dynamicItem:(id)arg4; 297 | - (double)_grayLevelForDepth:(long long)arg1; 298 | - (id)alternateColor; 299 | - (void)setFoldingHoverRange:(struct _NSRange)arg1; 300 | - (struct _NSRange)foldingHoverRange; 301 | - (void)_loadColorsFromCurrentTheme; 302 | - (void)_themeColorsChanged:(id)arg1; 303 | - (void)_scheduleAnnotationLayoutAfterResize; 304 | - (void)drawRect:(struct CGRect)arg1; 305 | - (unsigned long long)foldedCharacterIndexForPoint:(struct CGPoint)arg1; 306 | - (void)setSelectedRanges:(id)arg1 affinity:(unsigned long long)arg2 stillSelecting:(BOOL)arg3; 307 | - (void)_delayedTrimTrailingWhitespaceForLine:(id)arg1; 308 | - (void)trimTrailingWhitespaceOnLine:(unsigned long long)arg1; 309 | - (void)trimTrailingWhitespaceOnLine:(unsigned long long)arg1 trimWhitespaceOnlyLine:(BOOL)arg2; 310 | - (void)trimTrailingWhitespaceOnLineFromCharacterIndex:(unsigned long long)arg1 trimWhitespaceOnlyLine:(BOOL)arg2; 311 | - (BOOL)shouldTrimTrailingWhitespace; 312 | - (void)setSelectedRange:(struct _NSRange)arg1; 313 | - (void)contextMenu_toggleMessageBubbleShown:(id)arg1; 314 | - (void)toggleMessageBubbleShown:(id)arg1; 315 | - (void)_enumerateMessageBubbleAnnotationsInSelection:(id)arg1; 316 | - (void)setAccessoryAnnotationWidth:(unsigned long long)arg1; 317 | - (void)_updateAccessoryAnnotationViews; 318 | - (void)_adjustSizeOfAccessoryAnnotation:(id)arg1; 319 | - (void)showAnnotation:(id)arg1 animateIndicator:(BOOL)arg2; 320 | - (void)_animateBubbleView:(id)arg1; 321 | - (void)didRemoveAnnotations:(id)arg1; 322 | - (void)didAddAnnotations:(id)arg1; 323 | - (id)visibleAnnotationsForLineNumberRange:(struct _NSRange)arg1; 324 | - (id)annotationForRepresentedObject:(id)arg1; 325 | @property(readonly) NSArray *annotations; 326 | - (void)setShowsFoldingSidebar:(BOOL)arg1; 327 | - (BOOL)showsFoldingSidebar; 328 | - (void)getParagraphRect:(struct CGRect *)arg1 firstLineRect:(struct CGRect *)arg2 forLineRange:(struct _NSRange)arg3 ensureLayout:(BOOL)arg4; 329 | - (struct _NSRange)lineNumberRangeForBoundingRect:(struct CGRect)arg1; 330 | - (unsigned long long)lineNumberForPoint:(struct CGPoint)arg1; 331 | - (id)printJobTitle; 332 | @property(readonly) NSDictionary *syntaxColoringContext; 333 | - (id)language; 334 | - (BOOL)allowsCodeFolding; 335 | - (void)setAllowsCodeFolding:(BOOL)arg1; 336 | - (void)setTextStorage:(id)arg1; 337 | - (void)setTextStorage:(id)arg1 keepOldLayout:(BOOL)arg2; 338 | - (id)initWithCoder:(id)arg1; 339 | - (id)initWithFrame:(struct CGRect)arg1 textContainer:(id)arg2; 340 | - (void)_commonInitDVTSourceTextView; 341 | - (id)menuForEvent:(id)arg1; 342 | - (double)fmc_maxY; 343 | - (double)fmc_startOfLine:(long long)arg1; 344 | - (long long)fmc_lineNumberForPosition:(double)arg1; 345 | - (BOOL)shouldIndentPastedText:(id)arg1; 346 | - (void)indentUserChangeBy:(long long)arg1; 347 | 348 | @end 349 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/DVTSplitView.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated by class-dump 3.5 (64 bit). 3 | // 4 | // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. 5 | // 6 | 7 | #import 8 | 9 | @class DVTStackBacktrace, DVTStateToken, NSColor, NSImage, NSMutableDictionary, NSString; 10 | 11 | @interface DVTSplitView : NSSplitView 12 | { 13 | double _dividerThickness; 14 | unsigned long long _indexOfViewForResizing; 15 | long long _lastEventNumber; 16 | id _dvtDelegate; 17 | id _splitViewItems; 18 | NSImage *_dividerKnobImage; 19 | NSImage *_dividerImage; 20 | NSColor *_dividerColor; 21 | DVTStateToken *_stateToken; 22 | NSMutableDictionary *_additionalEffectiveRects; 23 | struct { 24 | unsigned int _delegateRespondsToCanCollapseSubview:1; 25 | unsigned int _delegateRespondsToShouldCollapseAtIndex:1; 26 | unsigned int _delegateRespondsToConstrainMinCoordinate:1; 27 | unsigned int _delegateRespondsToConstrainMaxCoordinate:1; 28 | unsigned int _delegateRespondsToConstrainSplitPosition:1; 29 | unsigned int _delegateRespondsToShouldHideDivider:1; 30 | unsigned int _delegateRespondsToResizeSubviews:1; 31 | unsigned int _delegateRespondsToEffectiveRect:1; 32 | unsigned int _delegateRespondsToAdditionalEffectiveRect:1; 33 | unsigned int _delegateRespondsToAdditionalEffectiveRects:1; 34 | unsigned int _delegateRespondsToWillResizeSubviews:1; 35 | unsigned int _delegateRespondsToDidResizeSubviews:1; 36 | unsigned int _delegateRespondsToSplitViewItemDidExpandOrCollapseBecauseUserDraggedDivider:1; 37 | unsigned int _delegateRespondsToNeedsRectanglesForViewsWithStateForSize:1; 38 | unsigned int _delegateRespondsToWillStartLiveResize:1; 39 | unsigned int _delegateRespondsToDidEndLiveResize:1; 40 | unsigned int _needsAdjust:1; 41 | unsigned int _doingAnimationReplaceSubview:1; 42 | unsigned int _reserved:15; 43 | } _dvtSplitViewFlags; 44 | BOOL _isAnimating; 45 | BOOL _suppressFrameWarnings; 46 | BOOL _revertingState; 47 | BOOL _suppressAdditionalRects; 48 | } 49 | 50 | + (long long)version; 51 | + (void)configureStateSavingObjectPersistenceByName:(id)arg1; 52 | + (void)initialize; 53 | @property BOOL suppressFrameWarnings; // @synthesize suppressFrameWarnings=_suppressFrameWarnings; 54 | @property(retain, nonatomic) DVTStateToken *stateToken; // @synthesize stateToken=_stateToken; 55 | @property unsigned long long indexOfViewForResizing; // @synthesize indexOfViewForResizing=_indexOfViewForResizing; 56 | - (void)resetCursorRects; 57 | - (id)hitTest:(struct CGPoint)arg1; 58 | - (BOOL)dvt_isValidGrabHit:(struct CGPoint)arg1; 59 | - (BOOL)_validateSubviewFrames; 60 | - (void)splitViewDidResizeSubviews:(id)arg1; 61 | - (void)splitViewWillResizeSubviews:(id)arg1; 62 | - (struct CGRect)splitView:(id)arg1 additionalEffectiveRectOfDividerAtIndex:(long long)arg2; 63 | - (struct CGRect)splitView:(id)arg1 effectiveRect:(struct CGRect)arg2 forDrawnRect:(struct CGRect)arg3 ofDividerAtIndex:(long long)arg4; 64 | - (BOOL)splitView:(id)arg1 shouldHideDividerAtIndex:(long long)arg2; 65 | - (void)splitView:(id)arg1 resizeSubviewsWithOldSize:(struct CGSize)arg2; 66 | - (double)splitView:(id)arg1 constrainSplitPosition:(double)arg2 ofSubviewAt:(long long)arg3; 67 | - (double)splitView:(id)arg1 constrainMaxCoordinate:(double)arg2 ofSubviewAt:(long long)arg3; 68 | - (double)splitView:(id)arg1 constrainMinCoordinate:(double)arg2 ofSubviewAt:(long long)arg3; 69 | - (BOOL)splitView:(id)arg1 shouldCollapseSubview:(id)arg2 forDoubleClickOnDividerAtIndex:(long long)arg3; 70 | - (BOOL)splitView:(id)arg1 canCollapseSubview:(id)arg2; 71 | - (void)viewWillDraw; 72 | - (void)willRemoveSubview:(id)arg1; 73 | - (void)addSubview:(id)arg1 positioned:(long long)arg2 relativeTo:(id)arg3; 74 | - (void)addSubview:(id)arg1; 75 | - (void)replaceSubview:(id)arg1 with:(id)arg2; 76 | - (void)dvt_removeSubview:(id)arg1; 77 | - (void)dvt_addSubview:(id)arg1; 78 | - (void)dvt_replaceSubview:(id)arg1 with:(id)arg2; 79 | - (void)setSubviews:(id)arg1; 80 | - (id)_splitViewItemForSubview:(id)arg1; 81 | - (id)splitViewItemWithIdentifier:(id)arg1; 82 | - (void)removeSplitViewItem:(id)arg1; 83 | - (void)insertSplitViewItem:(id)arg1 atIndex:(long long)arg2; 84 | - (void)addSplitViewItem:(id)arg1; 85 | - (id)splitViewItems; 86 | - (id)_splitViewItems; 87 | - (void)_updateSplitViewItemsBasedOnSubviews; 88 | - (void)_indicateStateChangedIfNeccessary; 89 | - (void)commitStateToDictionary:(id)arg1; 90 | - (void)revertStateWithDictionary:(id)arg1; 91 | - (void)_setSplitViewItemInfo:(id)arg1; 92 | - (id)_splitViewItemInfo; 93 | - (void)toggleVisibilityOfItemUsingAnimation:(id)arg1; 94 | @property(copy) NSColor *dividerColor; 95 | @property double dividerThickness; 96 | - (void)drawDividerInRect:(struct CGRect)arg1; 97 | @property(copy) NSImage *dividerImage; 98 | @property(copy) NSImage *dividerKnobImage; 99 | - (void)primitiveInvalidate; 100 | - (void)viewDidEndLiveResize; 101 | - (void)viewWillStartLiveResize; 102 | - (id)dvt_delegate; 103 | - (id)delegate; 104 | - (void)setDelegate:(id)arg1; 105 | - (id)initWithCoder:(id)arg1; 106 | - (id)initWithFrame:(struct CGRect)arg1; 107 | - (void)dvtSplitViewCommonInit; 108 | 109 | // Remaining properties 110 | @property(retain) DVTStackBacktrace *creationBacktrace; 111 | @property(readonly, copy) NSString *debugDescription; 112 | @property(readonly, copy) NSString *description; 113 | @property(readonly) DVTStackBacktrace *invalidationBacktrace; 114 | @property(readonly) Class superclass; 115 | @property(readonly, nonatomic, getter=isValid) BOOL valid; 116 | 117 | @end 118 | 119 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/DVTViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | #import 8 | 9 | @class DVTExtension, DVTStackBacktrace, NSString; 10 | 11 | @interface DVTViewController : NSViewController 12 | { 13 | DVTExtension *_representedExtension; 14 | BOOL _isViewLoaded; 15 | BOOL _didCallViewWillUninstall; 16 | void *_keepSelfAliveUntilCancellationRef; 17 | } 18 | 19 | + (id)defaultViewNibBundle; 20 | + (id)defaultViewNibName; 21 | + (void)initialize; 22 | @property(retain, nonatomic) DVTExtension *representedExtension; // @synthesize representedExtension=_representedExtension; 23 | @property BOOL isViewLoaded; // @synthesize isViewLoaded=_isViewLoaded; 24 | - (void)primitiveInvalidate; 25 | - (void)invalidate; 26 | - (BOOL)commitEditingForAction:(int)arg1 errors:(id)arg2; 27 | - (void)_willUninstallContentView:(id)arg1; 28 | - (void)_didInstallContentView:(id)arg1; 29 | - (void)viewWillUninstall; 30 | - (void)viewDidInstall; 31 | - (void)loadView; 32 | - (void)setView:(id)arg1; 33 | - (void)separateKeyViewLoops; 34 | - (BOOL)delegateFirstResponder; 35 | - (id)supplementalMainViewController; 36 | - (id)description; 37 | - (BOOL)becomeFirstResponder; 38 | - (id)view; 39 | - (id)initWithCoder:(id)arg1; 40 | - (id)initWithNibName:(id)arg1 bundle:(id)arg2; 41 | - (id)initUsingDefaultNib; 42 | - (void)dvtViewController_commonInit; 43 | @property(readonly) BOOL canBecomeMainViewController; 44 | 45 | // Remaining properties 46 | @property(retain) DVTStackBacktrace *creationBacktrace; 47 | @property(readonly) DVTStackBacktrace *invalidationBacktrace; 48 | @property(readonly, nonatomic, getter=isValid) BOOL valid; 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/IDEEditor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | #import "IDEViewController.h" 8 | 9 | @class DVTFindBar, DVTNotificationToken, DVTObservingToken, DVTScopeBarsManager, IDEEditorContext, IDEEditorDocument, IDEFileTextSettings, NSScrollView; 10 | 11 | @interface IDEEditor : IDEViewController 12 | { 13 | IDEEditorDocument *_document; 14 | IDEEditorDocument *_documentForNavBarStructure; 15 | IDEEditorContext *_editorContext; 16 | DVTFindBar *_findBar; 17 | DVTNotificationToken *_documentDidChangeNotificationToken; 18 | DVTNotificationToken *_documentForNavBarStructureDidChangeNotificationToken; 19 | DVTObservingToken *_documentFileURLObservingToken; 20 | IDEFileTextSettings *_fileTextSettings; 21 | BOOL _discardsFindResultsWhenContentChanges; 22 | } 23 | 24 | + (BOOL)canProvideCurrentSelectedItems; 25 | @property(retain, nonatomic) IDEFileTextSettings *fileTextSettings; // @synthesize fileTextSettings=_fileTextSettings; 26 | @property(retain) IDEEditorContext *editorContext; // @synthesize editorContext=_editorContext; 27 | @property(retain) IDEEditorDocument *document; // @synthesize document=_document; 28 | @property(retain, nonatomic) IDEEditorDocument *documentForNavBarStructure; // @synthesize documentForNavBarStructure=_documentForNavBarStructure; 29 | @property BOOL discardsFindResultsWhenContentChanges; // @synthesize discardsFindResultsWhenContentChanges=_discardsFindResultsWhenContentChanges; 30 | - (id)relatedMenuItemsForNavItem:(id)arg1; 31 | - (void)didSetupEditor; 32 | - (void)navigateToAnnotationWithRepresentedObject:(id)arg1 wantsIndicatorAnimation:(BOOL)arg2 exploreAnnotationRepresentedObject:(id)arg3; 33 | - (void)selectDocumentLocations:(id)arg1; 34 | - (id)currentSelectedDocumentLocations; 35 | - (id)currentSelectedItems; 36 | - (void)primitiveInvalidate; 37 | - (id)supplementalTargetForAction:(SEL)arg1 sender:(id)arg2; 38 | @property(readonly) NSScrollView *mainScrollView; 39 | @property(readonly) DVTScopeBarsManager *scopeBarsManager; 40 | @property(readonly, getter=isPrimaryEditor) BOOL primaryEditor; 41 | - (void)setupContextMenuWithMenu:(id)arg1 withContext:(id)arg2; 42 | - (void)takeFocus; 43 | @property(readonly) DVTFindBar *findBar; // @synthesize findBar=_findBar; 44 | - (void)editorContextDidHideFindBar; 45 | - (id)createFindBar; 46 | @property(readonly) BOOL findBarSupported; 47 | - (id)_getUndoManager:(BOOL)arg1; 48 | - (id)undoManager; 49 | - (id)initWithNibName:(id)arg1 bundle:(id)arg2 document:(id)arg3; 50 | - (id)_initWithNibName:(id)arg1 bundle:(id)arg2; 51 | - (id)initWithNibName:(id)arg1 bundle:(id)arg2; 52 | - (id)initUsingDefaultNib; 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/IDESourceCodeEditor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | #import "IDEEditor.h" 8 | #import "IDESourceCodeEditorContainerView.h" 9 | 10 | @class DVTDispatchLock, DVTLayoutManager, DVTNotificationToken, DVTObservingToken, DVTOperation, DVTScopeBarController, DVTSourceExpression, DVTSourceTextView, DVTStackBacktrace, DVTTextDocumentLocation, DVTTextSidebarView, DVTWeakInterposer, IDEAnalyzerResultsExplorer, IDENoteAnnotationExplorer, IDESingleFileProcessingToolbarController, IDESourceCodeDocument, IDESourceCodeEditorAnnotationProvider, IDESourceCodeEditorContainerView, IDESourceCodeHelpNavigationRequest, IDESourceCodeNavigationRequest, IDESourceCodeSingleLineBlameProvider, IDESourceControlLogDetailViewController, NSArray, NSDictionary, NSMutableArray, NSOperationQueue, NSPopover, NSProgressIndicator, NSScrollView, NSString, NSTimer, NSTrackingArea, NSView; 11 | 12 | @interface IDESourceCodeEditor : IDEEditor 13 | { 14 | NSScrollView *_scrollView; 15 | DVTSourceTextView *_textView; 16 | DVTLayoutManager *_layoutManager; 17 | IDESourceCodeEditorContainerView *_containerView; 18 | DVTTextSidebarView *_sidebarView; 19 | NSArray *_currentSelectedItems; 20 | NSDictionary *_syntaxColoringContext; 21 | DVTSourceExpression *_selectedExpression; 22 | DVTSourceExpression *_mouseOverExpression; 23 | IDESourceCodeNavigationRequest *_currentNavigationRequest; 24 | IDESourceCodeHelpNavigationRequest *_helpNavigationRequest; 25 | struct dispatch_queue_s *_symbolLookupQueue; 26 | NSMutableArray *_stateChangeObservingTokens; 27 | DVTObservingToken *_topLevelItemsObserverToken; 28 | DVTObservingToken *_firstResponderObserverToken; 29 | DVTObservingToken *_editorLiveIssuesEnabledObserverToken; 30 | DVTObservingToken *_navigatorLiveIssuesEnabledObserverToken; 31 | DVTNotificationToken *_workspaceLiveSourceIssuesEnabledObserver; 32 | DVTObservingToken *_needsDiagnosisObserverToken; 33 | DVTObservingToken *_diagnosticItemsObserverToken; 34 | NSOperationQueue *_diagnoseRelatedFilesQueue; 35 | DVTOperation *_findRelatedFilesOperation; 36 | DVTObservingToken *_sessionInProgressObserverToken; 37 | DVTNotificationToken *_blueprintDidChangeNotificationObservingToken; 38 | DVTNotificationToken *_textStorageDidProcessEndingObserver; 39 | DVTNotificationToken *_textViewBoundsDidChangeObservingToken; 40 | DVTNotificationToken *_sourceCodeDocumentWillSaveNotificationToken; 41 | DVTNotificationToken *_sourceCodeDocumentDidSaveNotificationToken; 42 | DVTNotificationToken *_indexDidChangeNotificationToken; 43 | IDESourceCodeEditorAnnotationProvider *_annotationProvider; 44 | IDEAnalyzerResultsExplorer *_analyzerResultsExplorer; 45 | DVTWeakInterposer *_analyzerResultsScopeBar_dvtWeakInterposer; 46 | BOOL _hidingAnalyzerExplorer; 47 | IDENoteAnnotationExplorer *_noteAnnotationExplorer; 48 | IDESourceCodeSingleLineBlameProvider *_blameProvider; 49 | NSPopover *_blameLogPopover; 50 | IDESourceControlLogDetailViewController *_blameDetailController; 51 | IDESingleFileProcessingToolbarController *_singleFileProcessingToolbarController; 52 | NSView *_emptyView; 53 | NSProgressIndicator *_contentGenerationProgressIndicator; 54 | NSTimer *_contentGenerationProgressTimer; 55 | NSOperationQueue *_tokenizeQueue; 56 | DVTDispatchLock *_tokenizeAccessLock; 57 | unsigned long long _tokenizeGeneration; 58 | NSTrackingArea *_mouseTracking; 59 | NSDictionary *_previouslyRestoredStateDictionary; 60 | long long _previousLineNumber; 61 | unsigned long long _lastFocusedAnnotationIndex; 62 | struct _NSRange _lastEditedCharRange; 63 | DVTTextDocumentLocation *_continueToHereDocumentLocation; 64 | DVTTextDocumentLocation *_continueToLineDocumentLocation; 65 | DVTWeakInterposer *_hostViewController_dvtWeakInterposer; 66 | struct { 67 | unsigned int wantsDidScroll:1; 68 | unsigned int wantsDidFinishAnimatingScroll:1; 69 | unsigned int supportsContextMenuCustomization:1; 70 | unsigned int supportsAnnotationContextCreation:1; 71 | unsigned int wantsDidLoadAnnotationProviders:1; 72 | unsigned int reserved:3; 73 | } _hvcFlags; 74 | BOOL _trackingMouse; 75 | BOOL _initialSetupDone; 76 | BOOL _nodeTypesPrefetchingStarted; 77 | BOOL _isUninstalling; 78 | } 79 | 80 | + (id)keyPathsForValuesAffectingIsWorkspaceBuilding; 81 | + (void)revertStateWithDictionary:(id)arg1 withSourceTextView:(id)arg2 withEditorDocument:(id)arg3; 82 | + (void)commitStateToDictionary:(id)arg1 withSourceTextView:(id)arg2; 83 | + (long long)version; 84 | + (void)configureStateSavingObjectPersistenceByName:(id)arg1; 85 | @property(retain) IDESingleFileProcessingToolbarController *singleFileProcessingToolbarController; // @synthesize singleFileProcessingToolbarController=_singleFileProcessingToolbarController; 86 | @property(retain) IDEAnalyzerResultsExplorer *analyzerResultsExplorer; // @synthesize analyzerResultsExplorer=_analyzerResultsExplorer; 87 | @property(retain, nonatomic) DVTSourceExpression *mouseOverExpression; // @synthesize mouseOverExpression=_mouseOverExpression; 88 | @property(retain) IDESourceCodeEditorContainerView *containerView; // @synthesize containerView=_containerView; 89 | @property(retain) DVTSourceTextView *textView; // @synthesize textView=_textView; 90 | @property(retain) NSScrollView *scrollView; // @synthesize scrollView=_scrollView; 91 | - (BOOL)editorWantsAnnotationsFromProviderClass:(Class)arg1; 92 | - (BOOL)editorDocumentIsCurrentRevision; 93 | - (BOOL)editorIsHostedInComparisonEditor; 94 | - (id)_documentLocationForLineNumber:(long long)arg1; 95 | - (void)_createFileBreakpointAtLocation:(long long)arg1; 96 | - (id)_breakpointManager; 97 | - (long long)_currentOneBasedLineNubmer; 98 | - (id)currentEditorContext; 99 | - (id)documentLocationForOpenQuicklyQuery:(id)arg1; 100 | - (void)openQuicklyScoped:(id)arg1; 101 | - (void)debugLogJumpToDefinitionState:(id)arg1; 102 | - (id)_jumpToDefinitionOfExpression:(id)arg1 fromScreenPoint:(struct CGPoint)arg2 clickCount:(long long)arg3 modifierFlags:(unsigned long long)arg4; 103 | - (void)_cancelHelpNavigationRequest; 104 | - (void)_cancelCurrentNavigationRequest; 105 | - (void)contextMenu_revealInSymbolNavigator:(id)arg1; 106 | - (void)jumpToSelection:(id)arg1; 107 | - (void)jumpToDefinitionWithShiftPlusAlternate:(id)arg1; 108 | - (void)jumpToDefinitionWithAlternate:(id)arg1; 109 | - (void)jumpToDefinition:(id)arg1; 110 | - (void)revealInSymbolNavigator:(id)arg1; 111 | - (unsigned long long)_insertionIndexUnderMouse; 112 | - (id)_documentLocationUnderMouse; 113 | - (id)_calculateContinueToDocumentLocationFromDocumentLocation:(id)arg1; 114 | - (id)_calculateContinueToLineDocumentLocation; 115 | - (id)_calculateContinueToHereDocumentLocation; 116 | - (BOOL)validateMenuItem:(id)arg1; 117 | - (void)menuNeedsUpdate:(id)arg1; 118 | - (void)mouseExited:(id)arg1; 119 | - (void)mouseEntered:(id)arg1; 120 | - (void)mouseMoved:(id)arg1; 121 | - (void)deregisterForMouseEvents; 122 | - (void)registerForMouseEvents; 123 | - (struct CGRect)expressionFrameForExpression:(id)arg1; 124 | - (id)importStringInExpression:(id)arg1; 125 | - (BOOL)isExpressionModuleImport:(id)arg1; 126 | - (BOOL)isExpressionPoundImport:(id)arg1; 127 | - (BOOL)_isExpressionImport:(id)arg1 module:(BOOL)arg2; 128 | - (BOOL)expressionContainsExecutableCode:(id)arg1; 129 | - (BOOL)isExpressionFunctionOrMethodCall:(id)arg1; 130 | - (BOOL)isExpressionInFunctionOrMethodBody:(id)arg1; 131 | - (BOOL)isLocationInFunctionOrMethodBody:(id)arg1; 132 | - (BOOL)isExpressionFunctionOrMethodDefinition:(id)arg1; 133 | - (BOOL)isExpressionInPlainCode:(id)arg1; 134 | - (BOOL)isExpressionWithinComment:(id)arg1; 135 | - (void)symbolsForExpression:(id)arg1 inQueue:(struct dispatch_queue_s *)arg2 completionBlock:(id)arg3; 136 | @property(readonly, nonatomic) NSString *selectedText; 137 | @property(readonly, nonatomic) struct CGRect currentSelectionFrame; 138 | - (void)_sendDelayedSelectedExpressionDidChangeMessage; 139 | @property(retain, nonatomic) DVTSourceExpression *selectedExpression; // @synthesize selectedExpression=_selectedExpression; 140 | - (void)_invalidateMouseOverExpression; 141 | @property(readonly) DVTSourceExpression *quickHelpExpression; 142 | @property(readonly) DVTSourceExpression *contextMenuExpression; 143 | - (void)_updatedMouseOverExpression; 144 | - (void)_updateSelectedExpression; 145 | - (BOOL)_expression:(id)arg1 representsTheSameLocationAsExpression:(id)arg2; 146 | - (id)_expressionAtCharacterIndex:(unsigned long long)arg1; 147 | - (id)refactoringExpressionUsingContextMenu:(BOOL)arg1; 148 | - (id)selectedTestsAndTestables; 149 | - (id)_testFromModelItem:(id)arg1 fromTests:(id)arg2; 150 | - (void)specialPaste:(id)arg1; 151 | - (id)_specialPasteContext; 152 | - (void)_changeSourceCodeLanguageAction:(id)arg1; 153 | - (void)_useSourceCodeLanguageFromFileDataTypeAction:(id)arg1; 154 | - (void)_askToPromoteToUnicodeSheetDidEnd:(id)arg1 returnCode:(long long)arg2 contextInfo:(void *)arg3; 155 | - (void)_askToPromoteToUnicode; 156 | - (void)_applyPerFileTextSettings; 157 | - (void)textView:(id)arg1 doubleClickedOnCell:(id)arg2 inRect:(struct CGRect)arg3 atIndex:(unsigned long long)arg4; 158 | - (void)textView:(id)arg1 clickedOnCell:(id)arg2 inRect:(struct CGRect)arg3 atIndex:(unsigned long long)arg4; 159 | - (void)contextMenu_toggleIssueShown:(id)arg1; 160 | - (void)toggleIssueShown:(id)arg1; 161 | - (void)_enumerateDiagnosticAnnotationsInSelection:(id)arg1; 162 | - (id)_jumpToAnnotationWithSelectedRange:(struct _NSRange)arg1 fixIt:(BOOL)arg2 backwards:(BOOL)arg3; 163 | - (void)fixAllInScope:(id)arg1; 164 | - (id)fixableDiagnosticAnnotationsInScope; 165 | - (id)_diagnosticAnnotationsInScopeFixableOnly:(BOOL)arg1; 166 | - (id)_diagnosticAnnotationsInRange:(struct _NSRange)arg1 fixableOnly:(BOOL)arg2; 167 | - (void)popoverWillClose:(id)arg1; 168 | - (id)viewWindow; 169 | - (BOOL)detailShouldShowOpenBlameView; 170 | - (void)openBlameView; 171 | - (void)openComparisonView; 172 | - (void)blameSelectedLine:(id)arg1; 173 | - (void)_showDocumentationForSelectedSymbol:(id)arg1; 174 | - (void)showQuickHelp:(id)arg1; 175 | - (void)continueToCurrentLine:(id)arg1; 176 | - (void)continueToHere:(id)arg1; 177 | - (void)toggleInvisibleCharactersShown:(id)arg1; 178 | - (void)toggleBreakpointAtCurrentLine:(id)arg1; 179 | - (void)_stopShowingContentGenerationProgressInidcator; 180 | - (void)_showContentGenerationProgressIndicatorWithDelay:(double)arg1; 181 | - (void)_contentGenerationProgressTimerFired:(id)arg1; 182 | - (void)_hideEmptyView; 183 | - (void)_showEmptyViewWithMessage:(id)arg1; 184 | - (void)_centerViewInSuperView:(id)arg1; 185 | - (void)compileCurrentFile; 186 | - (void)analyzeCurrentFile; 187 | - (void)preprocessCurrentFile; 188 | - (void)assembleCurrentFile; 189 | - (void)_processCurrentFileUsingBuildCommand:(int)arg1; 190 | - (id)_singleFileProcessingFilePath; 191 | - (void)startSingleProcessingModeForURL:(id)arg1; 192 | @property(readonly) BOOL isWorkspaceBuilding; 193 | - (BOOL)canAssembleFile; 194 | - (BOOL)canPreprocessFile; 195 | - (BOOL)canAnalyzeFile; 196 | - (BOOL)canCompileFile; 197 | - (void)stopNoteExplorer; 198 | - (void)startNoteExplorerForItem:(id)arg1; 199 | - (void)showErrorsOnly:(id)arg1; 200 | - (void)showAllIssues:(id)arg1; 201 | - (void)toggleMessageBubbles:(id)arg1; 202 | - (void)hideAnalyzerExplorerAnimate:(BOOL)arg1; 203 | - (void)showAnalyzerExplorerForMessage:(id)arg1 animate:(BOOL)arg2; 204 | - (void)_startPrefetchingNodeTypesInUpDirection:(BOOL)arg1 initialLineRange:(struct _NSRange)arg2 noProgressIterations:(unsigned long long)arg3; 205 | - (void)revertStateWithDictionary:(id)arg1; 206 | - (void)commitStateToDictionary:(id)arg1; 207 | - (void)configureStateSavingObservers; 208 | - (id)_transientStateDictionaryForDocument:(id)arg1; 209 | - (id)_stateDictionariesForDocuments; 210 | - (id)cursorForAltTemporaryLink; 211 | - (void)_textViewDidLoseFirstResponder; 212 | - (BOOL)completingTextViewHandleCancel:(id)arg1; 213 | - (void)textViewDidScroll:(id)arg1; 214 | - (void)textViewDidFinishAnimatingScroll:(id)arg1; 215 | - (id)textView:(id)arg1 menu:(id)arg2 forEvent:(id)arg3 atIndex:(unsigned long long)arg4; 216 | - (void)tokenizableItemsForItemAtRange:(struct _NSRange)arg1 completionBlock:(id)arg2; 217 | - (void)textViewBoundsDidChange:(id)arg1; 218 | - (void)textView:(id)arg1 handleMouseDidExitSidebar:(id)arg2; 219 | - (void)textView:(id)arg1 handleMouseDidMoveOverSidebar:(id)arg2 atLineNumber:(unsigned long long)arg3; 220 | - (void)textView:(id)arg1 handleMouseDownInSidebar:(id)arg2 atLineNumber:(unsigned long long)arg3; 221 | - (id)completingTextView:(id)arg1 documentLocationForWordStartLocation:(unsigned long long)arg2; 222 | - (void)completingTextView:(id)arg1 willPassContextToStrategies:(id)arg2 atWordStartLocation:(unsigned long long)arg3; 223 | - (void)textView:(id)arg1 didClickOnTemporaryLinkAtCharacterIndex:(unsigned long long)arg2 event:(id)arg3 isAltEvent:(BOOL)arg4; 224 | - (void)_doubleClickOnTemporaryHelpLinkTimerExpired; 225 | - (void)_doubleClickOnTemporaryLinkTimerExpired; 226 | - (BOOL)textView:(id)arg1 shouldShowTemporaryLinkForCharacterAtIndex:(unsigned long long)arg2 proposedRange:(struct _NSRange)arg3 effectiveRanges:(id *)arg4; 227 | - (void)textView:(id)arg1 didRemoveAnnotations:(id)arg2; 228 | - (void)textViewDidLoadAnnotationProviders:(id)arg1; 229 | - (id)annotationContextForTextView:(id)arg1; 230 | - (id)syntaxColoringContextForTextView:(id)arg1; 231 | - (BOOL)textView:(id)arg1 shouldChangeTextInRange:(struct _NSRange)arg2 replacementString:(id)arg3; 232 | - (void)setupTextViewContextMenuWithMenu:(id)arg1; 233 | - (void)setupGutterContextMenuWithMenu:(id)arg1; 234 | - (void)textViewDidChangeSelection:(id)arg1; 235 | - (void)textDidChange:(id)arg1; 236 | - (void)removeVisualization:(id)arg1 fadeOut:(BOOL)arg2 completionBlock:(id)arg3; 237 | - (void)addVisualization:(id)arg1 fadeIn:(BOOL)arg2 completionBlock:(id)arg3; 238 | @property(readonly) NSArray *visualizations; 239 | - (id)pathCell:(id)arg1 menuItemForNavigableItem:(id)arg2 defaultMenuItem:(id)arg3; 240 | - (BOOL)pathCell:(id)arg1 shouldInitiallyShowMenuSearch:(id)arg2; 241 | - (BOOL)pathCell:(id)arg1 shouldSeparateDisplayOfChildItemsForItem:(id)arg2; 242 | - (struct _NSRange)selectedRangeForFindBar:(id)arg1; 243 | - (id)startingLocationForFindBar:(id)arg1 findingBackwards:(BOOL)arg2; 244 | - (void)dvtFindBar:(id)arg1 didUpdateCurrentResult:(id)arg2; 245 | - (void)dvtFindBar:(id)arg1 didUpdateResults:(id)arg2; 246 | - (void)_sourceCodeDocumentDidSave:(id)arg1; 247 | - (void)_sourceCodeDocumentWillSave:(id)arg1; 248 | - (void)didSetupEditor; 249 | - (void)takeFocus; 250 | - (BOOL)canBecomeMainViewController; 251 | - (id)undoManagerForTextView:(id)arg1; 252 | - (void)viewWillUninstall; 253 | - (void)viewDidInstall; 254 | - (void)contentViewDidCompleteLayout; 255 | - (void)_doInitialSetup; 256 | - (void)_liveIssuesPreferencesUpdatedInvalidateDiagnosticController:(BOOL)arg1; 257 | - (void)_blueprintDidChangeForSourceCodeEditor:(id)arg1; 258 | - (void)_endObservingDiagnosticItems; 259 | - (void)_startObservingDiagnosticItems; 260 | - (void)primitiveInvalidate; 261 | - (void)selectDocumentLocations:(id)arg1 highlightSelection:(BOOL)arg2; 262 | - (void)selectAndHighlightDocumentLocations:(id)arg1; 263 | - (void)selectDocumentLocations:(id)arg1; 264 | - (void)navigateToAnnotationWithRepresentedObject:(id)arg1 wantsIndicatorAnimation:(BOOL)arg2 exploreAnnotationRepresentedObject:(id)arg3; 265 | - (id)currentSelectedDocumentLocations; 266 | - (id)_currentSelectedLandmarkItem; 267 | - (void)setCurrentSelectedItems:(id)arg1; 268 | - (id)currentSelectedItems; 269 | - (void)_refreshCurrentSelectedItemsIfNeeded; 270 | - (BOOL)_isCurrentSelectedItemsValid; 271 | @property(readonly) IDESourceCodeEditorAnnotationProvider *annotationProvider; // @synthesize annotationProvider=_annotationProvider; 272 | - (id)mainScrollView; 273 | @property(readonly) IDESourceCodeDocument *sourceCodeDocument; 274 | - (void)loadView; 275 | - (id)initWithNibName:(id)arg1 bundle:(id)arg2 document:(id)arg3; 276 | @property __weak DVTScopeBarController *analyzerResultsScopeBar; 277 | 278 | // Remaining properties 279 | @property(retain) DVTStackBacktrace *creationBacktrace; 280 | @property(readonly) DVTStackBacktrace *invalidationBacktrace; 281 | @property(readonly, nonatomic, getter=isValid) BOOL valid; 282 | 283 | @end 284 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/IDESourceCodeEditorContainerView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | 8 | @class DVTStackBacktrace, IDESourceCodeEditor, IDEViewController; 9 | 10 | @interface IDESourceCodeEditorContainerView : NSView 11 | { 12 | IDESourceCodeEditor *_editor; 13 | IDEViewController *_toolbarViewController; 14 | } 15 | 16 | + (void)initialize; 17 | @property(retain) IDESourceCodeEditor *editor; // @synthesize editor=_editor; 18 | - (void)primitiveInvalidate; 19 | - (void)showToolbarWithViewController:(id)arg1; 20 | - (void)didCompleteLayout; 21 | 22 | // Remaining properties 23 | @property(retain) DVTStackBacktrace *creationBacktrace; 24 | @property(readonly) DVTStackBacktrace *invalidationBacktrace; 25 | @property(readonly, nonatomic, getter=isValid) BOOL valid; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/IDEViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.3.4 (64 bit). 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. 5 | */ 6 | 7 | #import "DVTViewController.h" 8 | 9 | @class DVTStateToken, IDESelection, IDEWorkspace, IDEWorkspaceDocument, IDEWorkspaceTabController; 10 | 11 | @interface IDEViewController : DVTViewController 12 | { 13 | IDEWorkspaceTabController *_workspaceTabController; 14 | id _outputSelection; 15 | id _contextMenuSelection; 16 | DVTStateToken *_stateToken; 17 | } 18 | 19 | + (void)configureStateSavingObjectPersistenceByName:(id)arg1; 20 | + (long long)version; 21 | @property(retain, nonatomic) IDEWorkspaceTabController *workspaceTabController; // @synthesize workspaceTabController=_workspaceTabController; 22 | @property(copy) IDESelection *contextMenuSelection; // @synthesize contextMenuSelection=_contextMenuSelection; 23 | @property(copy) IDESelection *outputSelection; // @synthesize outputSelection=_outputSelection; 24 | - (void)setStateToken:(id)arg1; 25 | - (BOOL)_knowsAboutInstalledState; 26 | - (void)revertState; 27 | - (void)commitState; 28 | - (void)commitStateToDictionary:(id)arg1; 29 | - (void)revertStateWithDictionary:(id)arg1; 30 | - (void)primitiveInvalidate; 31 | @property(readonly) BOOL automaticallyInvalidatesChildViewControllers; 32 | - (void)_invalidateSubViewControllersForView:(id)arg1; 33 | - (id)supplementalTargetForAction:(SEL)arg1 sender:(id)arg2; 34 | @property(readonly) IDEWorkspace *workspace; 35 | @property(readonly) IDEWorkspaceDocument *workspaceDocument; 36 | - (id)workspaceDocumentProvider; 37 | - (id)initWithNibName:(id)arg1 bundle:(id)arg2; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /SCXcodeEditorInset/Xcode Headers/IDEWorkspaceWindowController.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated by class-dump 3.5 (64 bit). 3 | // 4 | // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. 5 | // 6 | 7 | #import 8 | 9 | @class DVTBarBackground, DVTNotificationToken, DVTObservingToken, DVTStackBacktrace, DVTStateToken, DVTTabBarEnclosureView, DVTWeakInterposer, IDEEditorArea, IDEEditorDocument, IDEToolbarDelegate, IDEWorkspace, IDEWorkspaceTabController, IDEWorkspaceWindow, NSMapTable, NSMutableArray, NSString, NSTabView, NSTimer, _IDEWindowFullScreenSavedDebuggerTransitionValues; 10 | 11 | @interface IDEWorkspaceWindowController : NSWindowController 12 | { 13 | NSTimer *_springToFrontTimer; 14 | int _debugSessionState; 15 | NSMutableArray *_windowsOrderedOutForMiniDebugging; 16 | struct CGRect _restoreFrame; 17 | struct CGSize _originalMinSize; 18 | struct CGPoint _miniRestoreOrigin; 19 | struct CGSize _collapsedRestoreSize; 20 | struct CGSize _mediumRestoreSize; 21 | double _miniWindowBarHeight; 22 | double _toolbarHeightDelta; 23 | struct CGSize _contentViewFrozenSize; 24 | NSMutableArray *_topLevelViewOrder; 25 | NSMapTable *_viewHeightsForResizing; 26 | NSMutableArray *_stateChangeObservingTokens; 27 | IDEEditorDocument *_lastObservedEditorDocument; 28 | IDEWorkspaceTabController *_activeWorkspaceTabController; 29 | DVTObservingToken *_toolbarVisibleToken; 30 | IDEToolbarDelegate *_toolbarDelegate; 31 | BOOL _showToolbar; 32 | DVTObservingToken *_workspaceSimpleFilesFocusedObservingToken; 33 | DVTObservingToken *_workspaceRepresentingFilePathObservingToken; 34 | DVTObservingToken *_workspaceFinishedLoadingObservingToken; 35 | DVTObservingToken *_navigationTargetedEditorDocumentObservingToken; 36 | DVTNotificationToken *_editorDocumentIsEditedNotificationToken; 37 | DVTObservingToken *_userWantsMiniDebuggingConsoleObservingToken; 38 | DVTObservingToken *_userWantsAppFocusInMiniDebuggingObservingToken; 39 | IDEWorkspace *_workspace; 40 | _IDEWindowFullScreenSavedDebuggerTransitionValues *_fullScreenSavedDebuggerTransitionValues; 41 | unsigned int _coalescedUpdateMask; 42 | int _contentViewFrozenMode; 43 | BOOL _performingCoalescedUpdates; 44 | BOOL _readyToUpdateKeyboardLoop; 45 | BOOL _tabBarInTransition; 46 | BOOL _tabBarShownForTabDrag; 47 | BOOL _keepTabBarHiddenWhenCreatingTab; 48 | BOOL _isInMorphingToDebugging; 49 | BOOL _createdCollapsedRestoreFrame; 50 | BOOL _createdMediumRestoreFrame; 51 | BOOL _inTotalCollapsedFrame; 52 | BOOL _tabBarForcedClosed; 53 | BOOL _capturedStatesBeforeMiniDebugging; 54 | BOOL _wasShowingNavigatorBeforeMiniDebugging; 55 | BOOL _wasShowingUtilitiesBeforeMiniDebugging; 56 | BOOL _wasShowingEditorBeforeMiniDebugging; 57 | BOOL _isClosing; 58 | BOOL _enteringFullScreenMode; 59 | BOOL _exitingFullScreenMode; 60 | BOOL _fullScreenTabBarAlwaysVisible; 61 | BOOL _inMiniDebuggingMode; 62 | BOOL _createNewTabUponLoadIfNoTabsExist; 63 | BOOL _didSetupFirstResponderInterposer; 64 | BOOL _shouldPerformWindowClose; 65 | DVTTabBarEnclosureView *_tabBarEnclosureView; 66 | NSTabView *_tabView; 67 | NSString *_uniqueIdentifier; 68 | DVTWeakInterposer *_firstResponderInterposer; 69 | DVTBarBackground *_tabBarView; 70 | DVTStateToken *_stateToken; 71 | } 72 | 73 | + (id)keyPathsForValuesAffectingUserWantsBreakpointsActivated; 74 | + (void)initialize; 75 | + (id)workspaceWindowControllerForWindow:(id)arg1; 76 | + (long long)version; 77 | + (void)configureStateSavingObjectPersistenceByName:(id)arg1; 78 | + (id)workspaceWindowControllers; 79 | @property BOOL shouldPerformWindowClose; // @synthesize shouldPerformWindowClose=_shouldPerformWindowClose; 80 | @property(retain) DVTStateToken *stateToken; // @synthesize stateToken=_stateToken; 81 | @property(retain, nonatomic) DVTBarBackground *tabBarView; // @synthesize tabBarView=_tabBarView; 82 | @property BOOL didSetupFirstResponderInterposer; // @synthesize didSetupFirstResponderInterposer=_didSetupFirstResponderInterposer; 83 | @property(retain) DVTWeakInterposer *firstResponderInterposer; // @synthesize firstResponderInterposer=_firstResponderInterposer; 84 | @property(nonatomic) BOOL showToolbar; // @synthesize showToolbar=_showToolbar; 85 | @property BOOL createNewTabUponLoadIfNoTabsExist; // @synthesize createNewTabUponLoadIfNoTabsExist=_createNewTabUponLoadIfNoTabsExist; 86 | @property(copy, nonatomic) NSString *uniqueIdentifier; // @synthesize uniqueIdentifier=_uniqueIdentifier; 87 | @property(readonly, getter=isInMiniDebuggingMode) BOOL inMiniDebuggingMode; // @synthesize inMiniDebuggingMode=_inMiniDebuggingMode; 88 | @property(retain, nonatomic) NSTabView *tabView; // @synthesize tabView=_tabView; 89 | @property(retain, nonatomic) DVTTabBarEnclosureView *tabBarEnclosureView; // @synthesize tabBarEnclosureView=_tabBarEnclosureView; 90 | - (void)moveFocusToEditor:(id)arg1; 91 | - (void)dicardEditing; 92 | - (BOOL)commitEditingForAction:(int)arg1 errors:(id)arg2; 93 | - (void)_updateWindowTitle; 94 | - (void)_userWantsMiniDebuggingConsoleChanged; 95 | - (void)_userWantsAppFocusInMiniDebuggingChanged; 96 | - (void)_updateTitleRepresentedPath; 97 | @property BOOL userWantsBreakpointsActivated; 98 | - (void)changeFromDebugSessionState:(int)arg1 to:(int)arg2 fromDebuggingWindowBehavior:(int)arg3 to:(int)arg4; 99 | - (void)_makeWindowLookKeyWhenKey; 100 | - (void)windowDidExitFullScreen:(id)arg1; 101 | - (void)windowWillExitFullScreen:(id)arg1; 102 | - (void)windowWillEnterFullScreen:(id)arg1; 103 | - (void)windowDidEnterFullScreen:(id)arg1; 104 | - (void)_workaround8217584; 105 | - (BOOL)_isTargetApplicationActive; 106 | - (void)_changeWindowsLevelFrom:(int)arg1 to:(int)arg2; 107 | - (void)_changeFrom:(int)arg1 toNormalOrXcodeBehindDebugging:(int)arg2; 108 | - (void)_changeToMiniDebugging:(int)arg1; 109 | - (void)_morphToMedium:(int)arg1; 110 | - (struct CGRect)_mediumFrame; 111 | - (void)_morphToNonCollapsed:(struct CGRect)arg1 frozenMode:(int)arg2 toolbarHeightDelta:(double)arg3; 112 | - (void)_morphToCollapsed; 113 | - (void)_setInTotalCollapsed:(BOOL)arg1; 114 | - (void)_reSnapshotContentViewToNewFrame:(struct CGRect)arg1 hideTabBarBeforeSnapshot:(BOOL)arg2 toolbarHeightDelta:(double)arg3; 115 | - (void)_createCollapsedRestoreFrame; 116 | - (void)_performSpringToFront; 117 | - (void)_cancelSpringToFront; 118 | - (void)_scheduleSpringToFront; 119 | - (id)_screenForWindow; 120 | - (void)morphingDragImage:(id)arg1 exitedWindow:(id)arg2; 121 | - (void)morphingDragImage:(id)arg1 enteredWindow:(id)arg2; 122 | - (BOOL)morphingDragImage:(id)arg1 performDragOperation:(id)arg2; 123 | - (void)morphingDragImage:(id)arg1 draggingExited:(id)arg2; 124 | - (unsigned long long)morphingDragImage:(id)arg1 draggingUpdated:(id)arg2; 125 | - (unsigned long long)morphingDragImage:(id)arg1 draggingEntered:(id)arg2; 126 | - (void)workspaceWindowWillInvalidateCursorRectsForViewsWithNoTrackingAreas:(id)arg1; 127 | - (void)workspaceWindow:(id)arg1 willInvalidateCursorRectsForView:(id)arg2; 128 | - (BOOL)workspaceWindow:(id)arg1 interceptAddCursorRect:(struct CGRect)arg2 cursor:(id)arg3 forView:(id)arg4; 129 | - (BOOL)workspaceWindow:(id)arg1 interceptSetCursorForMouseLocation:(struct CGPoint)arg2; 130 | - (void)workspaceWindowDidRecalculateKeyViewLoop:(id)arg1; 131 | - (void)windowWillClose:(id)arg1; 132 | - (void)windowDidMove:(id)arg1; 133 | - (void)windowDidResize:(id)arg1; 134 | - (struct CGSize)windowWillResize:(id)arg1 toSize:(struct CGSize)arg2; 135 | - (BOOL)windowShouldZoom:(id)arg1 toFrame:(struct CGRect)arg2; 136 | - (void)_recordRestoreFrame; 137 | - (struct CGRect)window:(id)arg1 willPositionSheet:(id)arg2 usingRect:(struct CGRect)arg3; 138 | - (void)workspaceWindowIsClosing:(id)arg1; 139 | - (void)_pushDefaultPrimaryEditorFrameSizes; 140 | - (BOOL)_isLastWindowControllerOfDocument; 141 | - (void)primitiveInvalidate; 142 | - (void)_prepareBarsToExitFullScreen; 143 | - (void)_prepareBarsToEnterFullScreen; 144 | - (BOOL)isEnteringOrInFullScreenMode; 145 | - (BOOL)isInFullScreenMode; 146 | - (void)synchronizeWindowTitleWithDocumentName; 147 | - (void)_performCloseAll; 148 | - (BOOL)_shouldCloseWindowEvaluatingOtherWindows; 149 | - (void)_closeWindowIfNoTabs; 150 | - (double)tabBarHeight; 151 | - (void)moveTabFromOtherWindow:(id)arg1 toIndex:(unsigned long long)arg2 andSelect:(BOOL)arg3; 152 | - (void)replaceEmptyTabWithTabs:(id)arg1; 153 | - (void)_closeOtherTabsWithoutConfirming:(id)arg1; 154 | - (void)closeTabOrWindow:(id)arg1; 155 | - (void)_closeTabWithoutConfirming:(id)arg1; 156 | - (void)_closeTabWithoutConfirming:(id)arg1 andInvalidate:(BOOL)arg2; 157 | - (void)closeTab:(id)arg1; 158 | - (id)_findTabForView:(id)arg1; 159 | - (void)selectTab:(id)arg1; 160 | - (BOOL)_moreThanOneTabShowing; 161 | - (BOOL)closeKeyEquivalentClosesTab; 162 | - (id)_createTabWithViewController:(id)arg1 atIndex:(unsigned long long)arg2 andShow:(BOOL)arg3; 163 | - (void)_toggleTabBarWithAnimation:(BOOL)arg1 isShowing:(BOOL)arg2 forceMaintainFullHeight:(BOOL)arg3; 164 | - (void)_toggleTabBarWithAnimation:(BOOL)arg1 isShowing:(BOOL)arg2; 165 | - (id)_setAutoresizingMasksForOrderedViews:(id)arg1 toResizeOnly:(id)arg2; 166 | - (void)_collectViewInfoForResizing; 167 | - (void)_updateAuxiliaryToolbarViewSizes; 168 | - (double)_originalHeightForView:(id)arg1; 169 | - (id)showTabNamed:(id)arg1; 170 | - (id)_showTab:(id)arg1; 171 | - (void)_moveTabToNewWindow:(id)arg1; 172 | - (id)_setUpTabForViewController:(id)arg1 atIndex:(unsigned long long)arg2; 173 | - (id)_setUpTabForViewController:(id)arg1 addToRightSide:(BOOL)arg2; 174 | - (id)_setUpTabForViewController:(id)arg1; 175 | - (id)createTabWithViewController:(id)arg1 andShow:(BOOL)arg2 addToRightSide:(BOOL)arg3; 176 | - (id)createInactiveTabWithFrameName:(id)arg1; 177 | - (id)createInactiveTab; 178 | - (id)createTabWithFrameName:(id)arg1 andShow:(BOOL)arg2 addToRightSide:(BOOL)arg3; 179 | - (id)instantiateTabControllerAndRegisterForStateSavingWithName:(id)arg1 inDocument:(id)arg2; 180 | - (id)createTabWithFrameName:(id)arg1; 181 | - (id)createTab; 182 | - (unsigned long long)selectedTabIndex; 183 | - (void)closeTabFromMenu:(id)arg1; 184 | - (id)selectedTab; 185 | - (id)orderedTabViewItems; 186 | - (void)cancelUpdateTabTitlesSoon; 187 | - (void)_performCoalescedUpdates; 188 | - (void)_cancelCoalescedUpdate:(int)arg1; 189 | - (void)_performCoalescedUpdateSoon:(int)arg1; 190 | - (void)tabBarViewUpdateTabTitlesNow; 191 | - (void)tabBarViewUpdateTabTitlesSoon; 192 | - (BOOL)canCreateNewTab; 193 | - (void)_showTabBarIfNeeded; 194 | - (void)_automaticallyHideTabBarForTabDrag; 195 | - (void)_automaticallyShowTabBarForTabDrag; 196 | - (void)_setTabBarVisible:(BOOL)arg1; 197 | - (BOOL)_alwaysShowTabBar; 198 | - (BOOL)canCloseSelectedTab; 199 | - (BOOL)_canCloseTab:(id)arg1; 200 | - (void)toggleTabBar:(id)arg1; 201 | - (void)selectPreviousTab:(id)arg1; 202 | - (void)selectNextTab:(id)arg1; 203 | - (void)_selectNextTabGoingForward:(BOOL)arg1; 204 | - (void)moveTabToNewWindowFromMenu:(id)arg1; 205 | - (void)closeOtherTabs:(id)arg1; 206 | - (void)closeOtherTabsFromMenu:(id)arg1; 207 | - (void)closeCurrentTab:(id)arg1; 208 | - (id)newTabWithName:(id)arg1 cloneExisting:(BOOL)arg2; 209 | - (void)newTabWithinWindow:(id)arg1; 210 | - (void)newTab:(id)arg1; 211 | - (BOOL)validateMenuItem:(id)arg1; 212 | - (BOOL)canCloseOtherTabs; 213 | - (struct CGRect)adjustedFrameForCascade:(struct CGRect)arg1 fromWindow:(id)arg2; 214 | - (struct CGRect)adjustedFrameForSaving:(struct CGRect)arg1; 215 | - (BOOL)_windowIsFullHeight; 216 | - (void)setTabBarVisible:(BOOL)arg1; 217 | - (BOOL)isTabBarVisible; 218 | - (void)_toggleTabBarWithAnimation:(BOOL)arg1; 219 | - (BOOL)_shouldShowTabBar; 220 | - (BOOL)canReceiveDragFromTabbedWindowControlling:(id)arg1; 221 | - (void)_setUpTabBar; 222 | - (void)autocreateContexts:(id)arg1; 223 | - (id)supplementalTargetForAction:(SEL)arg1 sender:(id)arg2; 224 | - (BOOL)window:(id)arg1 shouldRestoreStateForResponder:(id)arg2; 225 | @property(readonly) IDEWorkspaceWindow *workspaceWindow; 226 | - (id)_uniqueNameForNewWorkspaceTabController; 227 | @property(readonly) IDEEditorArea *editorArea; 228 | - (void)activateWorkspaceTabController:(id)arg1; 229 | @property(readonly) IDEWorkspaceTabController *activeWorkspaceTabController; 230 | - (void)_didChangeActiveWorkspaceTabController; 231 | - (id)workspaceTabControllers; 232 | - (void)setStateSavingWindowFrame:(id)arg1; 233 | - (id)stateSavingWindowFrame; 234 | - (void)commitStateToDictionary:(id)arg1; 235 | - (void)_configureStateSavingObservers; 236 | - (void)revertStateWithDictionary:(id)arg1; 237 | - (void)_revertForNewWindowWithTabStateContext:(id)arg1 documentURL:(id)arg2 simpleEditorWindowLayout:(BOOL)arg3; 238 | - (void)_changeSizeForSimpleEditorWindowLayoutWithEditorDocumentURLOrNil:(id)arg1 forSingleFile:(BOOL)arg2 workspaceTabController:(id)arg3; 239 | - (void)_updateToolbarIsVisible; 240 | - (void)toggleToolbarShown:(id)arg1; 241 | - (void)windowDidLoad; 242 | - (void)_showWindowBehindWorkspaceWindow:(id)arg1; 243 | - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; 244 | - (id)init; 245 | 246 | // Remaining properties 247 | @property(retain) DVTStackBacktrace *creationBacktrace; 248 | @property(readonly, copy) NSString *debugDescription; 249 | @property(readonly, copy) NSString *description; 250 | @property(readonly) unsigned long long hash; 251 | @property(readonly) DVTStackBacktrace *invalidationBacktrace; 252 | @property(readonly) Class superclass; 253 | @property(readonly, nonatomic, getter=isValid) BOOL valid; 254 | 255 | @end 256 | 257 | --------------------------------------------------------------------------------