Skip to main content
0 votes
1 answer
214 views

I am making an app that uses CAlayer to show contents like image in a NSWindow. The layer has shadows styled with shadowPath to make a better appearance. Finally to save/export the whole CAlayer and ...
vigu's user avatar
  • 41
1 vote
1 answer
322 views

I set shadow on NSMutableAttributedString, it works on other version of iOS but not iOS 13, the next is my code let shadow = NSShadow.init() shadow.shadowColor = UIColor.red ...
danfei91's user avatar
1 vote
1 answer
420 views

I just discovered the unfortunate fact that setting the shadow properties of an NSView's backing layer on macOS does not cause the shadow to render. It seems that this only works for stand-alone ...
jeremyabannister's user avatar
2 votes
0 answers
250 views

In our OS X application, we have enabled window shadow by view.window?.hasShadow = true. This will create a fine shadow over NSWindow. We have created a hole in the application by a custom view to see ...
Abdul Rahuman's user avatar
0 votes
1 answer
64 views

I try to write my own comboBox as NSComboBox does not has features I need. So, I subclassed an NSTextField and monitor the textinput and depending of the stringValue a TableView will get it's data. ...
MatzeLoCal's user avatar
5 votes
0 answers
247 views

I have a custom UIView that I've created that has several custom UIControl instances which are non-rectangular buttons (instead of using UIButton instances). I am doing this because I need to be able ...
mbm29414's user avatar
  • 11.6k
1 vote
2 answers
376 views

I am trying to add a shadow to a NSImageView on an MAC application. I created a custom NSImageView class "ShadowView.h" and modified the drawRect: like so: - (void)drawRect:(NSRect)dirtyRect { [...
Leonardo Murri's user avatar
2 votes
0 answers
1k views

Can anyone see what is wrong in the following Swift code? func myFunction(color:UIColor) {// Changes the Shadow color on textLabel var attributes = textLabel.attributedText?.attributesAtIndex(0, ...
Michel's user avatar
  • 12k
1 vote
1 answer
818 views

In Apple's documentation for NSShadow in UIKit, they state: An NSShadow object may be used in one of two ways. First, it may be set, like a color or a font, in which case its attributes are applied ...
varkor's user avatar
  • 509
3 votes
1 answer
352 views

I'm trying to get multiline text to draw with a drop shadow without using deprecated APIs. It works fine for a single line. The relevant code looks like this: -(void)drawRect:(CGRect)rect { ...
Ben Blaukopf's user avatar
  • 32.7k
1 vote
1 answer
141 views

I'm making a white shadow in Objective-C and using the code NSShadow *myShadow = [[NSShadow alloc]init]; [myShadow setShadowColor: [UIColor whiteColor]]; and it seems to work fine, but when I'm ...
turingtested's user avatar
  • 7,285
1 vote
1 answer
1k views

I have a navigation bar that looks like so: It was created with the following code: // AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)...
JWK's user avatar
  • 3,850
6 votes
0 answers
493 views

I'd like to get a custom NSShadow on a borderless NSWindow, and since I'm also applying some animations on the window, I've set up the window's content view to be layer-backed. When applying the ...
Raffael's user avatar
  • 1,159
3 votes
3 answers
5k views

I've spent some time trying to figure out how to add a shadow to an NSView. For now, I am attempting to use the NSShadow class to accomplish this. My code is below. I am attempting to create the ...
Jack Humphries's user avatar
4 votes
1 answer
1k views

I have a NSWindow subclass, looking like this The thing that bothers me is that I would like to alter the shadow. Over a standard window, like Xcode right here, the contrast is a little weak. So I'd ...
IluTov's user avatar
  • 6,848

15 30 50 per page