Re: Validating dictionary strings file

2011-11-21 Thread Norbert M. Doerner

Thanks for the plutil tip Brian.

It's not supposed to be an old style dictionary - it's just a 
strings file, and I have the whole thing in English and Spanish - 
the English one loads fine, and the Spanish one doesn't. 
Unfortunately seeing as plutil thinks it's supposed to be an old 
style dictionary file, it just tells me that there is an error at 
line 1.


That usually indicates a problem with line endings.

Make sure you open your Strings.plist file in Xcode, and check the 
line endings you have.


I have seen that same error when the strings file was modified by 
some "other platform" text editor, messing with the line endings. 
When I changed these, plutil finally gave me the exact line number of 
the problem.


Also, for good measure, make sure the strings file ends with an empty 
line, too.


Yours,
--
Norbert M. Doerner
CEO, West-Forest-Systems
In der Trift 13
56459 Langenhahn, Germany
Fon: +49 (2663) 91 70 128   (Central European Time Zone...)
Fax: +49 (2663) 91 70 126
AIM (iChat), Skype: cdfinderceo
Twitter: http://www.twitter.com/cdfinder
Facebook:
http://www.facebook.com/pages/CDFinder-The-Search-Is-Over/173297504827
---
CDFinder - The Search Is Over!  http://www.cdfinder.de/
Catalog and organize your photos, music, videos, disks, data, anything...
NEW:  CDFinder 5.7.3 for Mac OS X 10.7 Lion
 Also catalogs PDF, RAW, MS Word, Quark XPress, Adobe Illustrator, ...
---
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Validating dictionary strings file

2011-11-21 Thread Gideon King
I have filed a report on this. The problem originally exhibited itself in a 
strings file that was used for localization, and the error report gave no 
indication which file it was that had the problem, so I included that in the 
bug report too.


Regards

Gideon


On 21/11/2011, at 5:05 PM, Joar Wingfors wrote:

> Please file a bug report. Xcode should generate warnings / errors for strings 
> files, just like it can for other types of files.
> 
>   
> 
> j o a r
> 
> 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


NSTableView - preventing user moving with mouse

2011-11-21 Thread Peter Hudson
Hi All

I have an NSTableView whose position I want to control purely programatically.

How do I stop the user from changing its position using the mouse - including 
two finger swipe gestures ?

Peter

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView - preventing user moving with mouse

2011-11-21 Thread Richard Somers
On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote:

> I have an NSTableView whose position I want to control purely programatically.
> 
> How do I stop the user from changing its position using the mouse - including 
> two finger swipe gestures ?

The position of the NSTableView is set with -initWithFrame: along with all of 
the various frame methods. Column adjustment is controlled with 
-setAllowsColumnReordering: and -setAllowsColumnResizing:.

--Richard

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView - preventing user moving with mouse

2011-11-21 Thread Kyle Sluder
On Mon, Nov 21, 2011 at 6:45 AM, Richard Somers
 wrote:
> On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote:
>
>> I have an NSTableView whose position I want to control purely 
>> programatically.
>>
>> How do I stop the user from changing its position using the mouse - 
>> including two finger swipe gestures ?
>
> The position of the NSTableView is set with -initWithFrame: along with all of 
> the various frame methods. Column adjustment is controlled with 
> -setAllowsColumnReordering: and -setAllowsColumnResizing:.

-initWithFrame: really doesn't matter here, since the table view is
contained within an NSScrollView and will automatically resize itself
to fit its content.

Peter, AFAIK there's no way to disable user-initiated scrolling in an
NSScrollView via API. If this is the same scenario as your previous
thread, where you had one data table, a row header table, and a column
header table, then you've got a couple of options as far as I can
tell, all of them pretty advanced:

1. Subclass NSTableView and override -scrollWheel: and
-swipeWithEvent: to do nothing. This is probably the easiest method,
but the most likely to result in Whack-A-Mole of finding new ways that
scrolling can be performed and plugging those holes. You might also
need to subclass NSScrollView's implementation of these methods.

2. Embed the row and column NSTableViews inside NSClipViews _without_
an enclosing NSScrollView. Change the code from our previous
discussion to message the header views' clip views directly, rather
than going through the -enclosingScrollView method. Essentially this
means changing [tableView scrollPoint:] to [clipView
setBoundsOrigin:].

3. Put all three table views inside one NSScrollView. Subclass
NSScrollView and override -tile to arrange the three views correctly.
Having tried similar things myself, this is a fairly difficult
endeavor. It might not even be possible.

Is there a particular reason you wish to disable user-initiated
scrolling in this view? Perhaps you can just turn off visible
scrollers in your other table views to maintain the illusion that this
is just one big table view.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView - preventing user moving with mouse

2011-11-21 Thread Peter Hudson
Kyle

Kyle - Your guess was right - this is to do with the previous thread.
I am trying to make the line item table and the data table look like one table.

Your approach to scrolling the tables in sync works - but I still have 
the original syncing problem :-

The issue remains that if I start scrolling in one table, 
when I then continue the scroll in the other table, the table jumps to a 
different location 
as the scroll commences.  Its as though scrolling a table programmatically,
as we are doing, does not update some internal mechanism to do with its 
location.
I was busy going through the code I had written to see where the goof was ...
 
…but I have *another* issue I had not considered -  I cannot get the selection 
bar to appear continuously  
across both tables at the same time. I can fudge it - but it doesn't look right 
and will confuse people.

One feasible solution is to confine   selection / scrolling  to the data table 
only.
This works as far as the heuristics of the window is concerned.

Hence my question about preventing the user from being able to scroll 
any of the other views apart from the data view.

I'll have a look at the simpler of your suggestions….


Peter


On 21 Nov 2011, at 16:33, Kyle Sluder wrote:

> On Mon, Nov 21, 2011 at 6:45 AM, Richard Somers
>  wrote:
>> On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote:
>> 
>>> I have an NSTableView whose position I want to control purely 
>>> programatically.
>>> 
>>> How do I stop the user from changing its position using the mouse - 
>>> including two finger swipe gestures ?
>> 
>> The position of the NSTableView is set with -initWithFrame: along with all 
>> of the various frame methods. Column adjustment is controlled with 
>> -setAllowsColumnReordering: and -setAllowsColumnResizing:.
> 
> -initWithFrame: really doesn't matter here, since the table view is
> contained within an NSScrollView and will automatically resize itself
> to fit its content.
> 
> Peter, AFAIK there's no way to disable user-initiated scrolling in an
> NSScrollView via API. If this is the same scenario as your previous
> thread, where you had one data table, a row header table, and a column
> header table, then you've got a couple of options as far as I can
> tell, all of them pretty advanced:
> 
> 1. Subclass NSTableView and override -scrollWheel: and
> -swipeWithEvent: to do nothing. This is probably the easiest method,
> but the most likely to result in Whack-A-Mole of finding new ways that
> scrolling can be performed and plugging those holes. You might also
> need to subclass NSScrollView's implementation of these methods.
> 
> 2. Embed the row and column NSTableViews inside NSClipViews _without_
> an enclosing NSScrollView. Change the code from our previous
> discussion to message the header views' clip views directly, rather
> than going through the -enclosingScrollView method. Essentially this
> means changing [tableView scrollPoint:] to [clipView
> setBoundsOrigin:].
> 
> 3. Put all three table views inside one NSScrollView. Subclass
> NSScrollView and override -tile to arrange the three views correctly.
> Having tried similar things myself, this is a fairly difficult
> endeavor. It might not even be possible.
> 
> Is there a particular reason you wish to disable user-initiated
> scrolling in this view? Perhaps you can just turn off visible
> scrollers in your other table views to maintain the illusion that this
> is just one big table view.
> 
> --Kyle Sluder

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTableView - preventing user moving with mouse

2011-11-21 Thread Peter Hudson
Kyle -  

I've tried the suggestion of subclassing  -scrollWheel: and  swipeWithEvent: 
to prevent the table views being scrolled - and they work.

Many thanks

Peter




On 21 Nov 2011, at 16:33, Kyle Sluder wrote:

> On Mon, Nov 21, 2011 at 6:45 AM, Richard Somers
>  wrote:
>> On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote:
>> 
>>> I have an NSTableView whose position I want to control purely 
>>> programatically.
>>> 
>>> How do I stop the user from changing its position using the mouse - 
>>> including two finger swipe gestures ?
>> 
>> The position of the NSTableView is set with -initWithFrame: along with all 
>> of the various frame methods. Column adjustment is controlled with 
>> -setAllowsColumnReordering: and -setAllowsColumnResizing:.
> 
> -initWithFrame: really doesn't matter here, since the table view is
> contained within an NSScrollView and will automatically resize itself
> to fit its content.
> 
> Peter, AFAIK there's no way to disable user-initiated scrolling in an
> NSScrollView via API. If this is the same scenario as your previous
> thread, where you had one data table, a row header table, and a column
> header table, then you've got a couple of options as far as I can
> tell, all of them pretty advanced:
> 
> 1. Subclass NSTableView and override -scrollWheel: and
> -swipeWithEvent: to do nothing. This is probably the easiest method,
> but the most likely to result in Whack-A-Mole of finding new ways that
> scrolling can be performed and plugging those holes. You might also
> need to subclass NSScrollView's implementation of these methods.
> 
> 2. Embed the row and column NSTableViews inside NSClipViews _without_
> an enclosing NSScrollView. Change the code from our previous
> discussion to message the header views' clip views directly, rather
> than going through the -enclosingScrollView method. Essentially this
> means changing [tableView scrollPoint:] to [clipView
> setBoundsOrigin:].
> 
> 3. Put all three table views inside one NSScrollView. Subclass
> NSScrollView and override -tile to arrange the three views correctly.
> Having tried similar things myself, this is a fairly difficult
> endeavor. It might not even be possible.
> 
> Is there a particular reason you wish to disable user-initiated
> scrolling in this view? Perhaps you can just turn off visible
> scrollers in your other table views to maintain the illusion that this
> is just one big table view.
> 
> --Kyle Sluder

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Weird NSTextField behavior on MBA.

2011-11-21 Thread Gustavo Pizano
Hello all.

This is really bothering me.

I have a slider and a textfield. When I move the slider im setting the value of 
the slider on the text field.  So this works fine on my iMac and my wife's MBP, 
but on a friend MBA the value on the textfield does not display at all. Somehow 
it display when I resign the responder of it and choose another slider then it 
shows, but then when I select another slider it just does not display the 
updated value.


So im wondering what its going on because I have tried the behavior on 2 iMacs, 
2 MPB and 2 MBA, on the latest one is the only one that doesn't behave as 
expected.  What can it be?


PS:The font size its System Font 11.


Thx for any help provided,

Gustavo

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Weird NSTextField behavior on MBA.

2011-11-21 Thread Richard Somers
On Nov 21, 2011, at 3:08 PM, Gustavo Pizano wrote:

> So im wondering what its going on because I have tried the behavior on 2 
> iMacs, 2 MPB and 2 MBA, on the latest one is the only one that doesn't behave 
> as expected.  What can it be?

Perhaps it is a graphics card issue. One way to check out the hardware 
differences between various Macs is with Mactracker.

 http://mactracker.ca/

--Richard

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com