mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
adding objc-snippets
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: obs
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Register for Notification
|
||||
## condition: "source.objc meta.scope.implementation, source.objc++ meta.scope.implementation"
|
||||
# --
|
||||
[[NSNotificationCenter defaultCenter] addObserver:${1:self} selector:@selector(${3:${2/^([A-Z]{2})?(.+?)(Notification)?$/\l$2/}}:) name:${2:NSWindowDidBecomeMainNotification} object:${4:nil}];
|
||||
Reference in New Issue
Block a user