From 1b6f49b0ef8f8dff2504ea8feabf1f104107e00f Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 17 Dec 2013 19:26:23 +0000 Subject: Wow, I feel like an idiot: I didn’t realize there was a setStringValue: in NSTextField. Using that instead of setting the title via the cell. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88137 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'macosx/plugins/DFXVideo/macsrc') diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m index baa118f8..3fc886d4 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m @@ -288,7 +288,7 @@ void ReadConfig(void) { self.fragmentPath = _fragmentPath; if (_fragmentPath) { - [[fragmentShaderViewablePath cell] setTitle:[fragmentPath lastPathComponent]]; + [fragmentShaderViewablePath setStringValue:[fragmentPath lastPathComponent]]; [fragmentShaderViewablePath setToolTip:[fragmentPath path]]; } } @@ -297,7 +297,7 @@ void ReadConfig(void) { self.vertexPath = _vertexPath; if (_vertexPath) { - [[vertexShaderViewablePath cell] setTitle:[vertexPath lastPathComponent]]; + [vertexShaderViewablePath setStringValue:[vertexPath lastPathComponent]]; [vertexShaderViewablePath setToolTip:[vertexPath path]]; } } @@ -307,8 +307,7 @@ void ReadConfig(void) [openPanel setAllowsMultipleSelection:NO]; [openPanel setCanChooseDirectories:NO]; [openPanel setCanChooseFiles:YES]; - if ([openPanel runModal] == NSFileHandlingPanelOKButton) - { + if ([openPanel runModal] == NSFileHandlingPanelOKButton) { if ([sender tag] == 1) { [self setVertexPathInfo:[openPanel URL]]; } else { -- cgit v1.2.3