• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSBrowser


  • Subject: Re: Problems with NSBrowser
  • From: Guy Winslow <email@hidden>
  • Date: Tue, 14 May 2002 16:21:18 -0700

That9s what I was afraid the problem was. The Network function is in a call
back from the Browser Control. Is there a way to put a control in its own
thread.

On 5/14/02 12:14 PM, "John Pannell" <email@hidden> wrote:

> Hi Guy-
>
> Is your application utilizing more than one thread? If not, the network
> activity occupies all of the main thread's run loop, so that the
> progress bar never gets going until the network operation is completed.
> Which of course defeats the purpose of the progress bar:-)
>
> I've had a similar problem with an app I am working on, but have not
> pursued adding another thread yet... hope this helps!
>
> John
>
>
> On Tuesday, May 14, 2002, at 12:34 PM, Guy Winslow wrote:
>
>> I am missing something hear and cant figure it out for the life ova
>> me. I
>> am using the NSBrowser and have a length operation going on in the:
>>
>> - (int)browser:(NSBrowser *)sender numberOfRowsInColumn:(int)column
>> {
>> }
>>
>> Function. Its a network operation so it can rang from several seconds
>> till
>> my socket times out. I have a progress bar in the application showing
>> the
>> user there is something going on. I call the startAnimation in the
>> beginning and the stopAnimation in the end. The progress bar never
>> starts.
>> Overloaded the class and it never gets drawRect call till after I reach
>> the
>> end of the numberOfRowsInColumn function. Got to be something simple.
>> Any
>> ideas, anyone?
>>
>> _________________________________________________________________
>>
>> class Software Engineer
>> {
>> Public:
>> Prosoft Engineering Inc.
>> 4725 First Street, Suite 270
>> Pleasanton, CA 94566
>>
>> E-mail: email@hidden or email@hidden
>> Phone: (925) 426-6100 Ex:2308
>> Fax: (925) 426-6100
>> Cell: (925) 895-6329
>>
>> Private:
>> Guy Winslow
>> 1181 Sierra Ct
>> Livermore, CA. 94550
>> Home: (925) 606-1091
>> };
>> _________________________________________________________________
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: getpeername()
  • Next by Date: Re: Carracho and Hotline Sockets...
  • Previous by thread: Problems with NSBrowser
  • Next by thread: Re: why register for dragged types?
  • Index(es):
    • Date
    • Thread