• 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
[OT] 'Loosing' threads in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] 'Loosing' threads in Mail


  • Subject: [OT] 'Loosing' threads in Mail
  • From: Jim Witte <email@hidden>
  • Date: Tue, 27 Apr 2004 00:52:47 -0500

This is OT for this list, but it may be of interest to other people
reading so..

I've got two "Re: Fading in windows" messages, except that they
aren't linked in a thread. I assume this is because some message in
the chain is gone or the parent of the thread is gone (I don't know how
the the threading algorithm works, but I assume it's based on the
In-Reply-To header) Is there a way to artificially "reconnect" a thread
that's been lost?

Jim Witte
email@hidden
Indiana University CS
---
A vote for Nader is a vote for Geroge Bush.

Begin forwarded message:

> From: Eric Czarny <email@hidden>
> Date: April 26, 2004 11:11:52 PM EST
> To: email@hidden
> Cc: email@hidden
> Subject: Re: Fading in windows
>
> I wrote a subclass of NSWindowController that uses the following two
> methods to handle the fading in of windows. For those of you who have
> examined the FadeTest example you'll notice that making a window fade
> out is nothing more than modifying a few lines of code to get it to
> work the way you want.
>
> Note: _timer is an instance variable and that -(void)showWindow:
> (id)sender is sent to NSWindowController to display a window. I am sure
> there is a better way to do this, but it works rather well for the time
> being.
>
> - (void)showWindow: (id)sender
> {
> NSWindow *window = [self window];
>
> if ([window alphaValue] == 1.0)
> {
> [[self window] setAlphaValue: 0.0];
> }
>
> _timer = [[NSTimer scheduledTimerWithTimeInterval: 0.05 target: self
> selector: @selector(fadeInWindow:)
> userInfo: nil repeats: YES] retain];
>
> [super showWindow: sender];
> }
>
> - (void)fadeInWindow: (NSTimer *)timer
> {
> NSWindow *window = [self window];
>
> if ([window alphaValue] < 1.0)
> {
> [window setAlphaValue: ([window alphaValue] + 0.1)];
> }
> else
> {
> [_timer invalidate];
> [_timer release];
> }
> }
>
> However, I was wondering, how could I fade out every window upon
> termination of the application? What I have now will only fade out the
> window when the user explicitly closes a window that uses my
> NSWindowController subclass as its window controller subclass.
> _______________________________________________
> 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.
>


Begin forwarded message:

> From: Eric Czarny <email@hidden>
> Date: April 26, 2004 11:11:52 PM EST
> To: email@hidden
> Cc: email@hidden
> Subject: Re: Fading in windows
>
> I wrote a subclass of NSWindowController that uses the following two
> methods to handle the fading in of windows. For those of you who have
> examined the FadeTest example you'll notice that making a window fade
> out is nothing more than modifying a few lines of code to get it to
> work the way you want.
>
> Note: _timer is an instance variable and that -(void)showWindow:
> (id)sender is sent to NSWindowController to display a window. I am sure
> there is a better way to do this, but it works rather well for the time
> being.
>
> - (void)showWindow: (id)sender
> {
> NSWindow *window = [self window];
>
> if ([window alphaValue] == 1.0)
> {
> [[self window] setAlphaValue: 0.0];
> }
>
> _timer = [[NSTimer scheduledTimerWithTimeInterval: 0.05 target: self
> selector: @selector(fadeInWindow:)
> userInfo: nil repeats: YES] retain];
>
> [super showWindow: sender];
> }
>
> - (void)fadeInWindow: (NSTimer *)timer
> {
> NSWindow *window = [self window];
>
> if ([window alphaValue] < 1.0)
> {
> [window setAlphaValue: ([window alphaValue] + 0.1)];
> }
> else
> {
> [_timer invalidate];
> [_timer release];
> }
> }
>
> However, I was wondering, how could I fade out every window upon
> termination of the application? What I have now will only fade out the
> window when the user explicitly closes a window that uses my
> NSWindowController subclass as its window controller subclass.
> _______________________________________________
> 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.
>


Begin forwarded message:

> From: Eric Czarny <email@hidden>
> Date: April 26, 2004 11:11:52 PM EST
> To: email@hidden
> Cc: email@hidden
> Subject: Re: Fading in windows
>
> I wrote a subclass of NSWindowController that uses the following two
> methods to handle the fading in of windows. For those of you who have
> examined the FadeTest example you'll notice that making a window fade
> out is nothing more than modifying a few lines of code to get it to
> work the way you want.
>
> Note: _timer is an instance variable and that -(void)showWindow:
> (id)sender is sent to NSWindowController to display a window. I am sure
> there is a better way to do this, but it works rather well for the time
> being.
>
> - (void)showWindow: (id)sender
> {
> NSWindow *window = [self window];
>
> if ([window alphaValue] == 1.0)
> {
> [[self window] setAlphaValue: 0.0];
> }
>
> _timer = [[NSTimer scheduledTimerWithTimeInterval: 0.05 target: self
> selector: @selector(fadeInWindow:)
> userInfo: nil repeats: YES] retain];
>
> [super showWindow: sender];
> }
>
> - (void)fadeInWindow: (NSTimer *)timer
> {
> NSWindow *window = [self window];
>
> if ([window alphaValue] < 1.0)
> {
> [window setAlphaValue: ([window alphaValue] + 0.1)];
> }
> else
> {
> [_timer invalidate];
> [_timer release];
> }
> }
>
> However, I was wondering, how could I fade out every window upon
> termination of the application? What I have now will only fade out the
> window when the user explicitly closes a window that uses my
> NSWindowController subclass as its window controller subclass.
> _______________________________________________
> 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.


  • Follow-Ups:
    • Re: [OT] 'Loosing' threads in Mail
      • From: Steve Bird <email@hidden>
  • Prev by Date: Re: KeyValue Observing rant
  • Next by Date: Re: Fading in windows
  • Previous by thread: Re: mental crutch for class vs instance methods
  • Next by thread: Re: [OT] 'Loosing' threads in Mail
  • Index(es):
    • Date
    • Thread