xcode-snippets / objective-c Goto Github PK
View Code? Open in Web Editor NEWA few code snippets from my Xcode arsenal
Home Page: http://nshipster.com/xcode-snippets/
A few code snippets from my Xcode arsenal
Home Page: http://nshipster.com/xcode-snippets/
If the language is C, then it can't be a "Class Implementation". Should be "Code Expression" or "Function or Method".
there's so many pull requests and I get that it's difficult to maintain and you don't want to play traffic co-ordinator. You could always revoke control.
I just got the "Fake Book" today by e-mail after pre-ordering your upcoming book.
I wondered if it would be possible to add all of those recipes as snippets to be easily used within Xcode?
I don't think it would be hard for me to write down some code that'll do it automatically from your PDF/HTML (if available) , but the question is more legally-speaking.
Thank you and keep up your inspiring work.
Shai.
User defined Code Snippets are found in ~/Library/Developer/Xcode/UserData/CodeSnippets
and are saved individually as their own plist file. It would be awesome if these files were stored in the repo and users would be able to drag them to their UserData directory rather than recreate each one. ๐ค
Hello!
You can merge with other project
Just noticed this repo (and the fetched results controller delegate). I'm not interested in fixing it, but I noticed this bug so I will share.
See this article from Apple on NSFetchedResultsChangeUpdate
https://developer.apple.com/library/ios/releasenotes/iPhone/NSFetchedResultsChangeMoveReportedAsNSFetchedResultsChangeUpdate/ which describes it in more detail.
Since we use begin and end updates. If cells have been re-ordered, the cell's wont actually be re-ordered until end updates happens. But if we have a NSFetchedResultsChangeUpdate, we will reconfigure the cell at the index path. If a cell before it has been removed/inserted, this indexpath will reference a different cell until end updates has been called. -- kylef-archive/KFData#24 / kylef-archive/KFData@2d5f2d4
Great project! In Xcode 3 it had been possible to replace multiple placeholders with the same name, this looked like an 'Edit all in Scope'. Did you find out how to do this in Xcode 4? Would be great for the kvo sample.
Put the *.codesnippet in ~/Library/Developer/Xcode/UserData/CodeSnippets.
But the .codesnippet is a plist-like file. Can you convert them?
the following is the format:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>aaa</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>ClassInterfaceMethods</string>
</array>
<key>IDECodeSnippetContents</key>
<string>@property (nonatomic, assign) <#type#> <#name#></string>
<key>IDECodeSnippetIdentifier</key>
<string>7707FE2A-C6CF-4774-8A7D-EA6BEE058C11</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
<key>IDECodeSnippetTitle</key>
<string>ELC property declaration - assign</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>
When install these snippets,Xcode can't input any word.It will crash! I don't know whether reason is new version for 8.0!
i can't tell if that's just a placeholder line or if this is some seriously fancy stuff... if it's the latter, i'm trying to research what's happening here yet it's a little hard to describe so if you could point me in the right direction...
is line 10 actually return
'ing frame as the result of this block? @mattt is this in your book at all? you cover some awesomely obscure concepts in there yet i have trouble simply finding the time to sit and open a book haha.
https://github.com/mattt/Xcode-Snippets/blob/master/frame.m#L10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.