Re: Hot can I get called when my view scrolls?

2011-04-06 Thread Quincey Morris
On Apr 6, 2011, at 21:06, Carlos Eduardo Mello wrote:

> I have a custom view  embeded in a scroll view (let's call  it View A). I 
> have another view (View B) which is related to View A (but not inside it) and 
> needs to be updated whenever view A scrolls. (Please note that I don't have 
> any problems with scrolling. Scrolling works great in View A)
> 
> I know how to actively query the scroll view for scroller positions ( [ [ 
> scrollView verticalScroller ] floatValue ] ), or for the clip view position ( 
> [ [ scrollView contentView] bounds ].origin; ), but how do I act on 
> continuous scrolling actions initiated by the user?

View B should observe view A's clip view bounds change notifications (and you 
have to enable posting of the notifications -- see NSView documentation).

View A's frame coordinates are in the bounds coordinate system of its 
superview, the clip view (which in turn has the scroll view as its superview). 
To scroll its subview, the clip view offsets its own bounds to "place" itself 
over the portion of the subview that should be visible.

___

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


Hot can I get called when my view scrolls?

2011-04-06 Thread Carlos Eduardo Mello

Hi,

I have a custom view  embeded in a scroll view (let's call  it View  
A). I have another view (View B) which is related to View A (but not  
inside it) and needs to be updated whenever view A scrolls. (Please  
note that I don't have any problems with scrolling. Scrolling works  
great in View A)


I know how to actively query the scroll view for scroller positions  
( [ [ scrollView verticalScroller ] floatValue ] ), or for the clip  
view position ( [ [ scrollView contentView] bounds ].origin; ), but  
how do I act on continuous scrolling actions initiated by the user?


I figured this should be some kind of delegation pattern, but couldn't  
find anything associated with delegates in the NSScrollView's or  
related documentation! Do I need to use notifications? Subclass theNS  
ScrollView or the NSScroller classes?


Any suggestions will be great.

Carlos.
___

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: WebView Crashed

2011-04-06 Thread Bing Li
Dear Conrad,

I appreciate so much for your help!

LB

On Thu, Apr 7, 2011 at 10:32 AM, Conrad Shultz <
con...@synthetiqsolutions.com> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 4/6/11 7:21 PM, Bing Li wrote:
> > Dear all,
> >
> > I am a new developer of Cocoa. Today I tried to learn how to use WebView.
> I
> > just created a simple Cocoa Application, which is NOT document-based or
> > using Core Data. After that, WebView is dragged from the Library to the
> > Window of the newly-created Cocoa application. Without doing anything
> else,
> > I started to run it. It is weird that it got an uncaught exception. The
> > following is what is shown in the console. Could you help me how to solve
> > that?
>
> Add the WebKit framework to your project.  (Right-click on
> Frameworks->Add Existing).
>
>
>
> - --
> Conrad Shultz
>
> Synthetiq Solutions
> www.synthetiqsolutions.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk2dIk4ACgkQaOlrz5+0JdV1AwCePDjskwhPohk5SbjvdoYmu1Hl
> TNkAn2b5eQMxCk5LU0fpoqxo99WG9iL2
> =kNPk
> -END PGP SIGNATURE-
>
___

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: WebView Crashed

2011-04-06 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 4/6/11 7:21 PM, Bing Li wrote:
> Dear all,
> 
> I am a new developer of Cocoa. Today I tried to learn how to use WebView. I
> just created a simple Cocoa Application, which is NOT document-based or
> using Core Data. After that, WebView is dragged from the Library to the
> Window of the newly-created Cocoa application. Without doing anything else,
> I started to run it. It is weird that it got an uncaught exception. The
> following is what is shown in the console. Could you help me how to solve
> that?

Add the WebKit framework to your project.  (Right-click on
Frameworks->Add Existing).



- -- 
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2dIk4ACgkQaOlrz5+0JdV1AwCePDjskwhPohk5SbjvdoYmu1Hl
TNkAn2b5eQMxCk5LU0fpoqxo99WG9iL2
=kNPk
-END PGP SIGNATURE-
___

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: diable localization

2011-04-06 Thread John Joyce

On Apr 6, 2011, at 4:43 PM, Felix Franz wrote:

> 
> On Apr 5, 2011, at 3:55 PM, Georg Seifert wrote:
> 
>> Hi,
>> 
>> I what to give my users the possibility to disable the localization of my 
>> app. Is there a way to tell the system (NSBundle?) to always load the 
>> english nibs?
> 
> Just read http://homepage.mac.com/mmalc/Stepwise/Internationalization/ it 
> mentions the command line switch: 
> 
> $ /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages 
> "(Spanish)"
> 
> this is a normal default, so 
> 
> $ defaults write com.apple.TextEdit AppleLanguages "(Spanish)"
> 
> should work, or set the argument/default inside the main function before 
> calling NSApplicationMain
> 
> Grüße,
> 
> Felix
> 
Normally the defaults are empty for this and the app will load the first 
localized nib found in priority based on the System Preferences preferred 
language setting for the user account.
However, you can also specify a language in your plist and you can specify it 
in your app's code. 

___

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


WebView Crashed

2011-04-06 Thread Bing Li
Dear all,

I am a new developer of Cocoa. Today I tried to learn how to use WebView. I
just created a simple Cocoa Application, which is NOT document-based or
using Core Data. After that, WebView is dragged from the Library to the
Window of the newly-created Cocoa application. Without doing anything else,
I started to run it. It is weird that it got an uncaught exception. The
following is what is shown in the console. Could you help me how to solve
that?

By the way, I am working on Mac OS X 10.6.7. The version of my XCode is
3.2.5, 64-bit.

I appreciate so much for your help!

LB

[Switching to process 12822]

Running…

*2011-04-07 10:19:45.629 SimpleBrowser[12822:a0f] An uncaught exception was
raised*

*2011-04-07 10:19:45.631 SimpleBrowser[12822:a0f] *** -[NSKeyedUnarchiver
decodeObjectForKey:]: cannot decode object of class (WebView)*

*2011-04-07 10:19:45.632 SimpleBrowser[12822:a0f] *** Terminating app due to
uncaught exception 'NSInvalidUnarchiveOperationException', reason: '***
-[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class
(WebView)'*

 Call stack at first throw:*

*(*

* 0   CoreFoundation  0x7fff861637b4
__exceptionPreprocess + 180*

* 1   libobjc.A.dylib 0x7fff8830a0f3
objc_exception_throw + 45*

* 2   CoreFoundation  0x7fff861635d7 +[NSException
raise:format:arguments:] + 103*

* 3   CoreFoundation  0x7fff86163564 +[NSException
raise:format:] + 148*

* 4   Foundation  0x7fff87e22b22
_decodeObjectBinary + 2427*

* 5   Foundation  0x7fff87e238a1
-[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229*

* 6   Foundation  0x7fff87e23de1
-[NSArray(NSArray) initWithCoder:] + 462*

* 7   Foundation  0x7fff87e22b9b
_decodeObjectBinary + 2548*

* 8   Foundation  0x7fff87e22015 _decodeObject +
208*

* 9   AppKit  0x7fff8642601e -[NSView
initWithCoder:] + 362*

* 10  Foundation  0x7fff87e22b9b
_decodeObjectBinary + 2548*

* 11  Foundation  0x7fff87e22015 _decodeObject +
208*

* 12  AppKit  0x7fff864343e3
-[NSWindowTemplate initWithCoder:] + 3824*

* 13  Foundation  0x7fff87e22b9b
_decodeObjectBinary + 2548*

* 14  Foundation  0x7fff87e238a1
-[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229*

* 15  Foundation  0x7fff87e232e4 -[NSSet(NSSet)
initWithCoder:] + 447*

* 16  Foundation  0x7fff87e22b9b
_decodeObjectBinary + 2548*

* 17  Foundation  0x7fff87e22015 _decodeObject +
208*

* 18  AppKit  0x7fff863b610e
-[NSIBObjectData initWithCoder:] + 1983*

* 19  Foundation  0x7fff87e22b9b
_decodeObjectBinary + 2548*

* 20  Foundation  0x7fff87e22015 _decodeObject +
208*

* 21  AppKit  0x7fff863b583d loadNib + 146*

* 22  AppKit  0x7fff863b4d9a
+[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
*

* 23  AppKit  0x7fff863b4bd2
+[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326*

* 24  AppKit  0x7fff863b2153
NSApplicationMain + 279*

* 25  SimpleBrowser   0x00011891 main + 33*

* 26  SimpleBrowser   0x00011868 start + 52*

* 27  ??? 0x0001 0x0 + 1*

*)*

*terminate called after throwing an instance of 'NSException'*

Program received signal:  “SIGABRT”.

sharedlibrary apply-load-rules all

kill

quit
___

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: Can an image be "rejected" by CALayer?

2011-04-06 Thread Seth Willits
On Apr 6, 2011, at 3:44 AM, Gabriel Zachmann wrote:

> I am creating CA layers like so:
> 
>CALayer * imgLayer = [CALayer layer];
>imgLayer.contents  = (id) image;   
>...
> 
> The question now is: can I somehow find out whether or not the image has been 
> ignored by CALayer?
> Can I get any information as to why this might have happened?

I don't know if it can ignore some, but if you set the contents of a layer, 
make sure you don't accidentally call setNeedsDisplay on it. That'll wipe out 
the contents you set. That tripped me up a few times.


--
Seth Willits



___

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: Best way to find files

2011-04-06 Thread Dave DeLong
What sort of files do you want to find?  What do you want to do with them?

Both things you tried work just fine, depending on the answers to those 
questions.

Dave

On Apr 6, 2011, at 1:24 PM, Dominic Dauer wrote:

> Hi,
> I would like to know which is the best way to find files in the file system. 
> I tried the metadatasearch provided by the NSMetadateQuery Class and the 
> traditional recursive directory walk. 
> 
> - DD 
> ___
> 
> 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/davedelong%40me.com
> 
> This email sent to davedel...@me.com

___

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


Best way to find files

2011-04-06 Thread Dominic Dauer
Hi,
I would like to know which is the best way to find files in the file system. I 
tried the metadatasearch provided by the NSMetadateQuery Class and the 
traditional recursive directory walk. 

- DD 
___

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


ANN: HelpViewer code for iOS

2011-04-06 Thread Andreas Mayer
Hi there.

I just posted my first code snippet for iOS. It's a scroll view, that displays 
HTML pages from the app bundle. As the name implies, this was meant to provide 
a means of showing help pages.

http://www.harmless.de/cocoa-code.php#helpviewer

It's free, so have fun. :)


Andreas___

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: ScrollView Programming

2011-04-06 Thread Matt Neuburg
On Wed, 06 Apr 2011 05:25:34 -0400, Jeffrey Walton  said:
>Unfortunately, I don't know what I am looking for. Hence the reason I
>want to follow instructions. The best I can tell, the documentation is
>written for folks who have experience with the library (folks like
>you), and not folks who need steps detailed (folks like me).

I completely agree, and I think you *should* know what you're looking for. 
That's why my book *explains* scroll views to you rather than just giving you 
blind instructions to follow or parroting the documentation, plus by the time 
you get to them you understand the *concepts* on which they are based.

It is a *lot* easier to understand scroll views if you create and populate them 
in code before dealing with scroll views in the nib. So I suggest you scrap 
what you've got and start with this:

UIScrollView* sv = [[UIScrollView alloc] initWithFrame:
[[UIScreen mainScreen] applicationFrame]];
self.view = sv;
CGFloat y = 10;
for (int i=0; i<30; i++) {
UILabel* lab = [[UILabel alloc] init];
lab.text = [NSString stringWithFormat:@"This is label %i", i+1];
[lab sizeToFit];
CGRect f = lab.frame;
f.origin = CGPointMake(10,y);
lab.frame = f;
[sv addSubview:lab];
y += lab.bounds.size.height + 10;
[lab release];
}
CGSize sz = sv.bounds.size;
sz.height = y;
sv.contentSize = sz; // This is the crucial line
[sv release];

You'll need a view-based app to start with; put that in the loadView method 
(not viewDidLoad), so that the scroll view *is* the view controller's view. The 
crucial move, as the comment notes, is that we tell the scroll view how large 
its content view is to be. If we omit this step, the scroll view won't be 
scrollable; the window will appear to consist of a static column of labels.

m.

--
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook___

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


Internet Plug-In to not load in certain web browsers

2011-04-06 Thread Jerry Krinock
This may be crazy, but I just thought I'd ask…

I've produced [1] an Internet Plug-In which my app installs in 
~/Library/Internet Plug-Ins.  It allows my app to communicate with Google 
Chrome.  When it loads into other web browsers, all it does is waste bytes and, 
of course, add my name to the crash report whenever someone else's code takes a 
nosedive.

Is there any way to prevent it from loading into other web browsers, or for it 
to "unload" itself after determining it's host browser?

Thanks,

Jerry Krinock


[1]  Actually, I didn't have to write much code, thanks to http://firebreath.org

___

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


Can an image be "rejected" by CALayer?

2011-04-06 Thread Gabriel Zachmann
I am creating CA layers like so:

CALayer * imgLayer  = [CALayer layer];
imgLayer.contents   = (id) image;   
imgLayer.contentsGravity= kCAGravityResizeAspect;
imgLayer.delegate   = nil;
imgLayer.opacity= 1.0;  
imgLayer.position   = CGPointMake( drawRect_.size.width/2.0, 
drawRect_.size.height/2.0 );
imgLayer.anchorPoint= CGPointMake( 0.5, 0.5 );
imgLayer.zPosition  = -1.0; 

Now, sometimes, the image does not get displayed (most images do get displayed).
The funny thing, however, is that its size is smaller than what the graphics 
card reports it can handle as a texture.

In particular, the image is 4000x3000; and the graphics card says it can handle 
textures of up to 4096x4096.
Also, loading of the image seems to work just fine - I am doing quite some 
error checking, and nothing seems to have gone wrong.

The whole thing happens on an iMac under 10.5.8 (PPC).

The question now is: can I somehow find out whether or not the image has been 
ignored by CALayer?
Can I get any information as to why this might have happened?

Any insights and hints will be highly appreciated.

Best regards,
Gabriel.



smime.p7s
Description: S/MIME cryptographic signature
___

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: ScrollView Programming

2011-04-06 Thread Jeffrey Walton
On Wed, Apr 6, 2011 at 5:09 AM, Quincey Morris
 wrote:
> On Apr 6, 2011, at 01:53, Jeffrey Walton wrote:
>
>> Scroll View:
>>  Scroll View Connection: file's owner
>>  Scroll View Delegate: not connected (connected did not help)
>>  Size: 320 x 431 (Tab Bar)
>>  Clip subviews: off
>>  Autoresize subviews: on
>>  Outer size springs: on
>>  Inner size springs: unable to set (disabled?)
>>
>> View:
>>  View Connection: file's owner
>>  Size: 320 x 608
>>  Clip subviews: off
>>  Autoresize subviews: off
>>  Outer size springs: off
>>  Inner size springs: off
>>
>> The scroll view, view, and controls are *all* outlets. All are
>> verified to be non-nil in ViewDidLoad via Asserts. No assert fires.
>>
>> Any ideas? I'd like to wrap this up before day three is written off as
>> a loss.
>
> Well, I was talking about NSScrollView, but from the above it looks like 
> you're talking about UIScrollView. Which is it?
It's iPhone. Is there an appreciable difference?

> IAC, can't you set a breakpoint in viewDidLoad and examine frames of the 
> various views to see what's wrong? It's certainly possible that things get 
> resized again later, but that would be a place to start.
Unfortunately, I don't know what I am looking for. Hence the reason I
want to follow instructions. The best I can tell, the documentation is
written for folks who have experience with the library (folks like
you), and not folks who need steps detailed (folks like me).

If its any consolation, I'm probably more frustrated than you.

Jeff
___

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: ScrollView Programming

2011-04-06 Thread Quincey Morris
On Apr 6, 2011, at 01:53, Jeffrey Walton wrote:

> Scroll View:
>  Scroll View Connection: file's owner
>  Scroll View Delegate: not connected (connected did not help)
>  Size: 320 x 431 (Tab Bar)
>  Clip subviews: off
>  Autoresize subviews: on
>  Outer size springs: on
>  Inner size springs: unable to set (disabled?)
> 
> View:
>  View Connection: file's owner
>  Size: 320 x 608
>  Clip subviews: off
>  Autoresize subviews: off
>  Outer size springs: off
>  Inner size springs: off
> 
> The scroll view, view, and controls are *all* outlets. All are
> verified to be non-nil in ViewDidLoad via Asserts. No assert fires.
> 
> Any ideas? I'd like to wrap this up before day three is written off as
> a loss.

Well, I was talking about NSScrollView, but from the above it looks like you're 
talking about UIScrollView. Which is it?

IAC, can't you set a breakpoint in viewDidLoad and examine frames of the 
various views to see what's wrong? It's certainly possible that things get 
resized again later, but that would be a place to start.


___

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: ScrollView Programming

2011-04-06 Thread Jeffrey Walton
On Wed, Apr 6, 2011 at 2:47 AM, Quincey Morris
 wrote:
> On Apr 5, 2011, at 23:28, Quincey Morris wrote:
>
>> Almost certainly your problem is that you failed to set the autoresizing 
>> springs correctly for the "document" view. In the simplest case, it should 
>> be anchored on all 4 sides, and be stretchy in both directions.
>
> Gah! Said that backwards. If you do the above, it will of course never scroll 
> because it will always get resized to the size of the clip view. It needs to 
> be *bigger* than the clip view for scrolling to happen.
>
> If it's just a view full of controls, it shouldn't be set to resize 
> automatically at all.
>
OK. Thanks Quincey. I must be one of the dullest tools in the shed. I
can't seem to get this to work following both the documentation and
your advice. Here is what I have:

+ File Owner
+ First Responder
+ Scroll View
+ View
  + Control 1
  + Control 2
  + ...

Connections:
  file's owner, scroll view -> scroll view
  file's owner, view -> view
  scroll view delegate -> nil (file owner does not help)

Scroll View:
  Scroll View Connection: file's owner
  Scroll View Delegate: not connected (connected did not help)
  Size: 320 x 431 (Tab Bar)
  Clip subviews: off
  Autoresize subviews: on
  Outer size springs: on
  Inner size springs: unable to set (disabled?)

View:
  View Connection: file's owner
  Size: 320 x 608
  Clip subviews: off
  Autoresize subviews: off
  Outer size springs: off
  Inner size springs: off

The scroll view, view, and controls are *all* outlets. All are
verified to be non-nil in ViewDidLoad via Asserts. No assert fires.

Any ideas? I'd like to wrap this up before day three is written off as
a loss.

Jeff
___

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: diable localization

2011-04-06 Thread Felix Franz

On Apr 5, 2011, at 3:55 PM, Georg Seifert wrote:

> Hi,
> 
> I what to give my users the possibility to disable the localization of my 
> app. Is there a way to tell the system (NSBundle?) to always load the english 
> nibs?

Just read http://homepage.mac.com/mmalc/Stepwise/Internationalization/ it 
mentions the command line switch: 

$ /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages "(Spanish)"

this is a normal default, so 

$ defaults write com.apple.TextEdit AppleLanguages "(Spanish)"

should work, or set the argument/default inside the main function before 
calling NSApplicationMain

Grüße,

Felix


___

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