Daniel Jalkut | 1 Dec 2005 03:15
Favicon
Gravatar

Re: Replacing the Finder

Hi Alberto. There is a loginwindow preference you can set through the  
command line (or programatically) to change the "Finder" path on a  
per-user basis.  More details at this random page I just googled:

http://archive.macosxlabs.org/documentation/kiosk/details/details.html

Search google for "loginwindow" and "Finder" for more info...

Daniel

On Nov 30, 2005, at 11:15 AM, Alberto Ricart wrote:

> Hello,
>
>
> I have a need to replace the Finder, in a Kiosk type application,  
> but cannot find docs on how to do this. The <http:// 
> developer.apple.com/technotes/tn2002/tn2062.html> hints at a  
> document that explained how to do this, alas that document is no  
> longer available.
>
>
> Anyone knows how run a 'main' application upon login?
>
> Thanks,
>
>
>
> /a
> _______________________________________________
(Continue reading)

Gordon Worley | 1 Dec 2005 14:39
Picon

Re: Editing Multiple Values in a Master/Detail Interface


On Nov 28, 2005, at 9:01 PM, Eric Johnson wrote:

> I want it such that editing only occurs if I actually edit  
> something. Im sure others must have run accross this issue and It  
> must be something I havent set somewhere. How do you all get around  
> this? Do I have to make my own field editor that doesnt send its  
> action unless its stringValue has changed? That sounds great as I  
> type it, but as far as actually writing the subclass, I'd be lost...

Subclassing here shouldn't be necessary.  When the user finishes  
"editing", the NSTextField will send textShouldEndEditing: and then  
textDidEndEditing: to its delegate.  You could use these either to  
catch the error before editing is finished (so you could do some kind  
of error handling, or in your case silently handle the "error" by  
correcting the content of the text field) or after it is finished  
(just set things right here).

I'm not sure why it behaves that way.  Maybe a bug?

-- -- -- -- -- -- -- -- -- -- -- -- -- --
                Gordon Worley
             Phone: 352-875-5808
e-mail: redbird@...   PGP: 0xBBD3B003
   Web: http://homepage.mac.com/redbird/
Gordon Worley | 1 Dec 2005 14:58
Picon

NSTextView hiding bottom of text

I have an NSTextView where I do a variety of things programatically,  
like convert text to links and attachments and set the font  
programatically.  The problem is that my NSTextView is not drawing  
correctly.  Everything works fine until I reach the bottom of the  
view.  As I continue typing down there, part of the text gets cut  
off, so I can only see the top half of the characters.  This error  
remains no matter how much I type.  Occasionally it disappears when  
some of the text is of a different size, but by disappear that seems  
to mean that the text is just misdisplayed such that I can actually  
see it; usually there is then too much space at the bottom of the  
NSTextView.

Why is it doing this and how can I fix it?

Thanks.

-- -- -- -- -- -- -- -- -- -- -- -- -- --
                Gordon Worley
             Phone: 352-875-5808
e-mail: redbird@...   PGP: 0xBBD3B003
   Web: http://homepage.mac.com/redbird/
I. Savant | 1 Dec 2005 16:09
Picon

Re: NSTextView hiding bottom of text

Gordon:

   I think someone had this problem on this list before (maybe it was  
the cocoadev wiki). It's possible that when clicking around and  
messing with the text view's size, you resized the text view itself,  
rather than its enclosing scrollview. The simplest solution would be  
to just delete the text view and drop a new one in its place. If  
you're feeling brave (or have time to waste), you could select the  
text view inside its scroll view and manually set its size. I  
recommend just recreating it; it'll save you the hassle.

--
I.S.

On Dec 1, 2005, at 8:58 AM, Gordon Worley wrote:

> I have an NSTextView where I do a variety of things  
> programatically, like convert text to links and attachments and set  
> the font programatically.  The problem is that my NSTextView is not  
> drawing correctly.  Everything works fine until I reach the bottom  
> of the view.  As I continue typing down there, part of the text  
> gets cut off, so I can only see the top half of the characters.   
> This error remains no matter how much I type.  Occasionally it  
> disappears when some of the text is of a different size, but by  
> disappear that seems to mean that the text is just misdisplayed  
> such that I can actually see it; usually there is then too much  
> space at the bottom of the NSTextView.
>
> Why is it doing this and how can I fix it?
>
(Continue reading)

Christiaan Hofman | 1 Dec 2005 16:23
Picon
Picon
Favicon

Updating Info.plist

When I change Info.plist in xcode, the revised version is not loaded  
into a new build. What is worse, even when I delete the Info.plist  
inside the Contents folder of the build and in the intermediate  
folder (in the .build folder) xcode is still able to find and use the  
unedited file. Could anyone tell me how I can force xcode to use the  
correct version without Cleaning, and perhaps where it even gets the  
old one?

Christiaan
Gordon Worley | 1 Dec 2005 16:44
Picon

Re: NSTextView hiding bottom of text


On Dec 1, 2005, at 10:09 AM, I. Savant wrote:

>   I think someone had this problem on this list before (maybe it  
> was the cocoadev wiki). It's possible that when clicking around and  
> messing with the text view's size, you resized the text view  
> itself, rather than its enclosing scrollview. The simplest solution  
> would be to just delete the text view and drop a new one in its  
> place. If you're feeling brave (or have time to waste), you could  
> select the text view inside its scroll view and manually set its  
> size. I recommend just recreating it; it'll save you the hassle.

I saw those discussions in the archive, but that's not exactly what's  
happening here.  At no time in this process do I resize the  
NSTextView after its creation.  Solving it that way may work, but  
this seems to be a related, but different, problem related to the  
size of an NSTextView not properly accommodating its content.

-- -- -- -- -- -- -- -- -- -- -- -- -- --
                Gordon Worley
             Phone: 352-875-5808
e-mail: redbird@...   PGP: 0xBBD3B003
   Web: http://homepage.mac.com/redbird/
Trent Jacobs | 1 Dec 2005 16:52
Picon

Old references to frameworks...

I recently moved my project to my new powerbook, and deleted/re-added  
the frameworks I am using in the project. (Specifically, the  
Quicklite framework).

Anyway, the project compiles and runs perfectly, but every time I  
compile I get a warning that it can't find the framework (it's  
looking where it was located on my old computer).

I have searched every file I can think of for hard coded references  
to this framework, but I can't find any. Please tell me where i can  
fix this...

Thanks in advance!

Trentino.,
David Dunham | 1 Dec 2005 17:21
Picon

Re: NSTextView hiding bottom of text


On 1 Dec 2005, at 05:58, Gordon Worley wrote:

> I have an NSTextView where I do a variety of things  
> programatically, like convert text to links and attachments and set  
> the font programatically.  The problem is that my NSTextView is not  
> drawing correctly.  Everything works fine until I reach the bottom  
> of the view.  As I continue typing down there, part of the text  
> gets cut off, so I can only see the top half of the characters.   
> This error remains no matter how much I type.  Occasionally it  
> disappears when some of the text is of a different size, but by  
> disappear that seems to mean that the text is just misdisplayed  
> such that I can actually see it; usually there is then too much  
> space at the bottom of the NSTextView.

So are you resizing this NSTextView yourself? Is it embedded in an  
NSScrollView?

David Dunham     A Sharp, LLC
Voice/Fax: 206 783 7404     http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus  
Wirth
Daniel Jalkut | 1 Dec 2005 17:27
Favicon
Gravatar

Re: Old references to frameworks...

Do you have any funny old values in the "Framework Search Paths"  
build setting?

In my experience Xcode doesn't always "clean up" when you remove a  
library as well as it "sets up" when you add one.

Daniel

On Dec 1, 2005, at 10:52 AM, Trent Jacobs wrote:

> I recently moved my project to my new powerbook, and deleted/re- 
> added the frameworks I am using in the project. (Specifically, the  
> Quicklite framework).
>
> Anyway, the project compiles and runs perfectly, but every time I  
> compile I get a warning that it can't find the framework (it's  
> looking where it was located on my old computer).
>
> I have searched every file I can think of for hard coded references  
> to this framework, but I can't find any. Please tell me where i can  
> fix this...
>
> Thanks in advance!
>
> Trentino.,
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev@...
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
(Continue reading)

Paul | 1 Dec 2005 21:02

Problem animating tableView width change

Hi all,
Im trying to animate a tableview  to change its width. Something like  
the animated cover art viewer in itunes.

I tried this with a NSTimer that calls my "animateTable" function
This simply adds 1 to the tableview's frame.size.width value with a  
setFrame call.
This works, but is quit jerky - not nice and smooth.

//awakeFromNib------------------------------
NSTimer *timer;
timer = [NSTimer scheduledTimerWithTimeInterval:0.04 target:self  
selector: <at> selector(animateTable:) userInfo:nil  repeats:YES];
//---------------------------------------------------

//animateTable---------------------------------
NSRect viewRect = [myTableView frame];
int viewWidth = viewRect.size.width;
if(viewWidth < 200) {
viewRect.size.width += 1;
[myTableView setFrame:viewRect];
}
//----------------------------------------------------

Is there a better way to animate the size of tableViews or other  
controls for that matter?
Thanks for all the kind cocoa goodness!

Paul
Boulder, CO
(Continue reading)


Gmane