<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Drag If You Want To</title>
	<atom:link href="http://www.red-sweater.com/blog/142/drag-if-you-want-to/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<pubDate>Fri, 21 Nov 2008 05:58:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-52592</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Tue, 06 Feb 2007 15:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-52592</guid>
		<description>Southsez - hmm... thanks for the link and for letting me know about the comment entry bug. I'll have to look into that!</description>
		<content:encoded><![CDATA[<p>Southsez - hmm&#8230; thanks for the link and for letting me know about the comment entry bug. I&#8217;ll have to look into that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: southsesz</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-52579</link>
		<dc:creator>southsesz</dc:creator>
		<pubDate>Tue, 06 Feb 2007 14:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-52579</guid>
		<description>This site has a solution to the text field dragging problem, using two field editors.  http://homepage.mac.com/tom_zepko/cocoa/topics/drag-and-drop.html (Note: there appears to be a bug in your comment-posting code such that a return after a line of text causes all subsequent lines (in this case, the URL) to not be displayed (as seen in my entry just above). By going back a page in Safari and removing the carriage return, the URL appears. (This explanation almost got killed by the bug too, because I originally had added a carriage return between the URL and this text!)</description>
		<content:encoded><![CDATA[<p>This site has a solution to the text field dragging problem, using two field editors.  <a href="http://homepage.mac.com/tom_zepko/cocoa/topics/drag-and-drop.html" rel="nofollow">http://homepage.mac.com/tom_zepko/cocoa/topics/drag-and-drop.html</a> (Note: there appears to be a bug in your comment-posting code such that a return after a line of text causes all subsequent lines (in this case, the URL) to not be displayed (as seen in my entry just above). By going back a page in Safari and removing the carriage return, the URL appears. (This explanation almost got killed by the bug too, because I originally had added a carriage return between the URL and this text!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6606</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Fri, 09 Jun 2006 18:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6606</guid>
		<description>Thanks for that hint Daniel!

I've been frustrated by those 'broken' nib files for a while but never bothered to look into it. And I wondered why nobody else was complaining about it. It seems like the language issue here explains all of it.

Still sucks, though.</description>
		<content:encoded><![CDATA[<p>Thanks for that hint Daniel!</p>
<p>I&#8217;ve been frustrated by those &#8216;broken&#8217; nib files for a while but never bothered to look into it. And I wondered why nobody else was complaining about it. It seems like the language issue here explains all of it.</p>
<p>Still sucks, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6600</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Fri, 09 Jun 2006 13:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6600</guid>
		<description>ssp: The problem you're running into with editing the Nib files is that apparently the German (and other localization?) resources have been "pared down" such that they no longer contain the pertinent info for editing. 

If you control-click a Nib file and select "Show Package Contents" you'll see the constituent files that makes up a Nib package.  It turns out that IB only really needs the Objects.nib file to instantiate the objects at runtime. The other two files are for Interface Builder's benefit in showing the user how they may edit the relationships.

For some reason those files have been removed from the localization editions in Mail. If you drag the "Info.nib" and "Classes.nib" from an English counterpart Nib to inside a German one, you should then find yourself able to open and edit it.  I'm pretty sure this is safe because the Info and Classes data don't contain localized information. I might be wrong about that, though.  

It might make a nice AppleScript or shell script that would simply go through and "repopulate" the localized versions, copying over from the English.

But anyway, back to your original question, it's precisely the removal of these files that developers sometimes use as a way of "read-protecting" their Nib files.</description>
		<content:encoded><![CDATA[<p>ssp: The problem you&#8217;re running into with editing the Nib files is that apparently the German (and other localization?) resources have been &#8220;pared down&#8221; such that they no longer contain the pertinent info for editing. </p>
<p>If you control-click a Nib file and select &#8220;Show Package Contents&#8221; you&#8217;ll see the constituent files that makes up a Nib package.  It turns out that IB only really needs the Objects.nib file to instantiate the objects at runtime. The other two files are for Interface Builder&#8217;s benefit in showing the user how they may edit the relationships.</p>
<p>For some reason those files have been removed from the localization editions in Mail. If you drag the &#8220;Info.nib&#8221; and &#8220;Classes.nib&#8221; from an English counterpart Nib to inside a German one, you should then find yourself able to open and edit it.  I&#8217;m pretty sure this is safe because the Info and Classes data don&#8217;t contain localized information. I might be wrong about that, though.  </p>
<p>It might make a nice AppleScript or shell script that would simply go through and &#8220;repopulate&#8221; the localized versions, copying over from the English.</p>
<p>But anyway, back to your original question, it&#8217;s precisely the removal of these files that developers sometimes use as a way of &#8220;read-protecting&#8221; their Nib files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6579</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Fri, 09 Jun 2006 07:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6579</guid>
		<description>Err, so what kind of 'permissions problem' would that be where applications can read the files when running but I can't.

I just checked anyway, and indeed in Mail I am  able to open English nib files. I'm interested in the German ones, though which IB tells me 'can't be opened'  Try one of rhose...</description>
		<content:encoded><![CDATA[<p>Err, so what kind of &#8216;permissions problem&#8217; would that be where applications can read the files when running but I can&#8217;t.</p>
<p>I just checked anyway, and indeed in Mail I am  able to open English nib files. I&#8217;m interested in the German ones, though which IB tells me &#8216;can&#8217;t be opened&#8217;  Try one of rhose&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JC</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6563</link>
		<dc:creator>JC</dc:creator>
		<pubDate>Fri, 09 Jun 2006 02:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6563</guid>
		<description>Curious about your last statement, ssp ... which nib files are crippled?  I was able to open a nib file from Mail.app with the Interface Builder included in Developer Tools 3.3.  I'm running on an iMac core duo with OS X 10.4.6.  Could you possibly have a permissions problem or preference file corruption?</description>
		<content:encoded><![CDATA[<p>Curious about your last statement, ssp &#8230; which nib files are crippled?  I was able to open a nib file from Mail.app with the Interface Builder included in Developer Tools 3.3.  I&#8217;m running on an iMac core duo with OS X 10.4.6.  Could you possibly have a permissions problem or preference file corruption?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6538</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Thu, 08 Jun 2006 14:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6538</guid>
		<description>Interesting observation about the scroll views. Still a bit odd.

I've filed the bug (#4578272) and we'll see how that goes. It's exactly the kind of problem that I don't really expect to see improvements on.

(BTW, what exactly does Apple do to cripple their nib files in a way that IB refuses to open them? And how can I undo it? That just seems to make exploration or improvement of things unnecessarily difficult. Although using UI Element Inspector is a cool idea here!)</description>
		<content:encoded><![CDATA[<p>Interesting observation about the scroll views. Still a bit odd.</p>
<p>I&#8217;ve filed the bug (#4578272) and we&#8217;ll see how that goes. It&#8217;s exactly the kind of problem that I don&#8217;t really expect to see improvements on.</p>
<p>(BTW, what exactly does Apple do to cripple their nib files in a way that IB refuses to open them? And how can I undo it? That just seems to make exploration or improvement of things unnecessarily difficult. Although using UI Element Inspector is a cool idea here!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6532</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Thu, 08 Jun 2006 13:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6532</guid>
		<description>Interesting bug case, ssp.  This is all starting to sound familiar. I believe years ago I may have reported similar bugs at Apple. But you should report this again! 

Here's what's going on with your Mail case. If you download Apple's &lt;a href="http://www.apple.com/applescript/uiscripting/02.html" rel="nofollow"&gt;UI Element Inspector&lt;/a&gt;, you can see as you hover the mouse over the text fields in Mail, that all of them are NSTextField. But most of them are textfield enclosed in a scroll view. I'm supposing that somehow the presence of the scroll view is enabling the drag receptivity. 

Stingerman: It seems like the bug could be solved by a category on NSTextField to cause it to accept text drags. But it must be more complicated than that. Maybe there are issues with sneaking text changes into the control without going through the whole "become focused, edit, then commit" process.</description>
		<content:encoded><![CDATA[<p>Interesting bug case, ssp.  This is all starting to sound familiar. I believe years ago I may have reported similar bugs at Apple. But you should report this again! </p>
<p>Here&#8217;s what&#8217;s going on with your Mail case. If you download Apple&#8217;s <a href="http://www.apple.com/applescript/uiscripting/02.html" rel="nofollow">UI Element Inspector</a>, you can see as you hover the mouse over the text fields in Mail, that all of them are NSTextField. But most of them are textfield enclosed in a scroll view. I&#8217;m supposing that somehow the presence of the scroll view is enabling the drag receptivity. </p>
<p>Stingerman: It seems like the bug could be solved by a category on NSTextField to cause it to accept text drags. But it must be more complicated than that. Maybe there are issues with sneaking text changes into the control without going through the whole &#8220;become focused, edit, then commit&#8221; process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6518</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Thu, 08 Jun 2006 08:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6518</guid>
		<description>Interesting explanation, Daniel.

I just tried this out once more to reproduce things. And in the place where it most frequently bugs me - in Mail - it looks downright ridiculous: Given a Mail window with the To, CC and subject fields and the keyboard focus on the To field, I can get three different drag &#38; drop behaviours.

1. Drag to the To field: green + cursor appears, no other highlight in the field, text is inserted
2. Drag to the CC field: greeen + cursor appears, black frame appears around the field, text is inserted
3. Drag to the Subject field: no cursor change, no text insertion

Very very odd. I guess I should file a bug report on this. 

I tried to make a film of that, but the cursor movements and cursor types don't appear coorectly on there, so it's not actually useful (http://www.stud.uni-goettingen.de/~s275288/stuff/DD.mov)</description>
		<content:encoded><![CDATA[<p>Interesting explanation, Daniel.</p>
<p>I just tried this out once more to reproduce things. And in the place where it most frequently bugs me - in Mail - it looks downright ridiculous: Given a Mail window with the To, CC and subject fields and the keyboard focus on the To field, I can get three different drag &amp; drop behaviours.</p>
<p>1. Drag to the To field: green + cursor appears, no other highlight in the field, text is inserted<br />
2. Drag to the CC field: greeen + cursor appears, black frame appears around the field, text is inserted<br />
3. Drag to the Subject field: no cursor change, no text insertion</p>
<p>Very very odd. I guess I should file a bug report on this. </p>
<p>I tried to make a film of that, but the cursor movements and cursor types don&#8217;t appear coorectly on there, so it&#8217;s not actually useful (http://www.stud.uni-goettingen.de/~s275288/stuff/DD.mov)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stingerman</title>
		<link>http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6513</link>
		<dc:creator>stingerman</dc:creator>
		<pubDate>Thu, 08 Jun 2006 05:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/142/drag-if-you-want-to#comment-6513</guid>
		<description>Can you change the focus to the text field as the cursor hovers over it, remembering the previous focused field after the drop is completed?</description>
		<content:encoded><![CDATA[<p>Can you change the focus to the text field as the cursor hovers over it, remembering the previous focused field after the drop is completed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.229 seconds -->
