iMac
lcxhjg
这个作者很懒,什么都没留下…
展开
-
显示/隐藏Mac隐藏文件
#defaultswritecom.apple.finderAppleShowAllFiles -booltrue#defaults writecom.apple.finder AppleShowAllFiles -bool false原创 2018-07-09 10:55:10 · 138 阅读 · 0 评论 -
NSBundle
Initializing an NSBundleGetting an NSBundleGetting a Bundled ClassFinding ResourcesGetting the Bundle DirectoryGetting Bundle InformationManaging Localized ResourcesLoading a ...转载 2018-08-03 14:40:51 · 218 阅读 · 0 评论 -
iOS 沙盒(SandBox)的目录结构
iOS 沙盒(SandBox)的目录结构 Loki_ 关注 2016.10.25 14...转载 2018-08-03 13:56:51 · 236 阅读 · 0 评论 -
OS X下App的结构分析及安装、卸载
相信Mac OS X 上大部分软件的拖拽安装方式给很多刚刚从 Windows 来到 Mac OS X上的朋友带过来惊喜,他们发现原来软件安装也可以如此简单!但是,在卸载一个软件的时候,对于熟悉了 Windows 下Uninstaller 的同学又要嘀咕了,这样是否直接删除 App 就可以做到完整卸载了呢?本篇文章,就从 Mac OS X App的基本结构出发,带大家...转载 2018-08-03 13:46:34 · 974 阅读 · 0 评论 -
objc.io#19#与调试器共舞 - LLDB 的华尔兹
你是否曾经苦恼于理解你的代码,而去尝试打印一个变量的值?1NSLog(@"%@", whatIsInsideThisThing);或者跳过一个函数调用来简化程序的行为?1NSNumber *n = @7; // 实际应该调用这个函数:Foo();或者短路一个逻辑检查?1if&a转载 2018-07-30 16:13:39 · 331 阅读 · 0 评论 -
窗口中下挂一个另一个窗口
窗口中下挂一个alert窗口 NSAlert *alert = [[NSAlert alloc] init]; [alert addButtonWithTitle:@"Yes"]; [alert addButtonWithTitle:@"No"]; [alert setAlertStyle:NSWarningAlertStyle]; ...原创 2018-07-15 18:20:01 · 177 阅读 · 0 评论 -
子窗口放在主窗口的中间
如何将子窗口放在主窗口的中间,覆盖主窗口 NSRect mainFrame = ((AppDelegate *)[NSApp delegate]).mainWindowController.window.frame; NSRect myFrame = [self.window frame]; NSPoint newOriginPoint; ...原创 2018-07-15 18:08:41 · 316 阅读 · 0 评论 -
macOS 查看链接的动态库
otool原创 2018-07-24 14:11:54 · 2083 阅读 · 1 评论 -
Cocoa: child Window in center of Main window
Solution A: before showing the child, set its frame to the appropriate position in the middle. If the user moves the main window, adjust the child as well.Solution B: make the child window with the ...转载 2018-07-16 08:57:30 · 201 阅读 · 0 评论 -
替换NSTextView的某个字符串
替换NSTextView的某个字符串 NSString *textContents = [[self.textView textStorage] string]; NSRange replaceRange = NSMakeRange(0, [self.textView.textStorage length]); NS...原创 2018-07-16 08:47:16 · 333 阅读 · 0 评论 -
iOS 判断当前网络状态的三种方法
iOS 判断当前网络状态的三种方法 时间:17-11-03 15:00:33 点击:11230 来源:萝莉与我 在项目中,为了好的用户体验,有些场景必须线判断网络状态,然后才能决定改干嘛。比如视频播放,需要线判断是Wifi还是4G,Wifi直接播放,4G先提示用户。获取网络状态的方法大概有三...转载 2018-07-17 08:51:24 · 207 阅读 · 0 评论 -
查看xcode环境变量
命令行进入HelloWorld工程目录,执行xcodebuild命令并带上“-showBuildSettings”参数: $xcodebuild -project HelloWorld.xcodeproj -target HelloWorld -configurationDebug -showBuildSettings > xcodebuild_showBuildSettings.txt 则...原创 2018-07-09 10:55:51 · 1029 阅读 · 0 评论 -
bundle 文件的理解
【知识总结】bundle 文件的理解 小子爱搞事 关注 2017.02.17 14:1...转载 2018-08-03 14:44:10 · 6138 阅读 · 0 评论