How to implement HUD-style window like Address Book's “Show in Large Type”

前端 未结 2 1542
独厮守ぢ
独厮守ぢ 2020-12-07 17:19

Several apps, including the built-in Address Book use a HUD window that is semi-transparent, with large shadowed text. I\'d like to implement a similar window in my Cocoa Ma

2条回答
  •  忘掉有多难
    2020-12-07 17:35

    Thank you for sharing this code. Helped me a lot! You may add the following line...

    [self setBackgroundColor:[NSColor clearColor]];
    

    to the init function of the window. This removes the white corners.

提交回复
热议问题