|
Changing Colours in an NSImage
2 messages
Hi, I have an Image that has a transparent background, the foreground image is made up totally of the (NSColor blackColor), is this an easy way to replace the “blackColor” with another Color? As an ex
Hi, I have an Image that has a transparent background, the foreground image is made up totally of the (NSColor blackColor), is this an easy way to replace the “blackColor” with another Color? As an ex
|
By
Dave
·
|
|
resizeWithOldSuperviewSize not getting called on added Subview
7 messages
Hi, I’m using Manual Layout on a Mac project. The View Hierarchy is built in Interface Builder and during run time I add a subview to one of the views. However, resizeWithOldSuperviewSize is not being
Hi, I’m using Manual Layout on a Mac project. The View Hierarchy is built in Interface Builder and during run time I add a subview to one of the views. However, resizeWithOldSuperviewSize is not being
|
By
Dave
·
|
|
Mail Icon for iOS
5 messages
I have a UIButton “Send Mail”. Looks ok, but kind of plain. Other apps (like Photos) have a beautiful blue Mail icon. Is there a way to use this? Gerriet.
I have a UIButton “Send Mail”. Looks ok, but kind of plain. Other apps (like Photos) have a beautiful blue Mail icon. Is there a way to use this? Gerriet.
|
By
Gerriet M. Denkmann
·
|
|
Very short-lived Permissions in iOS
3 messages
iOS 12; Xcode 10. User clicks on a button. 2018-09-28 12:14:59.376384+0700 CLAuthorizationStatus: Not Determined 2018-09-28 12:14:59.377407+0700 asking for permission... 2018-09-28 12:15:01.242062+070
iOS 12; Xcode 10. User clicks on a button. 2018-09-28 12:14:59.376384+0700 CLAuthorizationStatus: Not Determined 2018-09-28 12:14:59.377407+0700 asking for permission... 2018-09-28 12:15:01.242062+070
|
By
Gerriet M. Denkmann
·
|
|
Mystery Buttons in UITableViews
3 messages
iOS 12, Xcode 10. I have two subclasses of UITableViewController, and the tableView of each has a row with a UIButton. Both subclasses look absolutely identical (I have checked this in Xcode at least
iOS 12, Xcode 10. I have two subclasses of UITableViewController, and the tableView of each has a row with a UIButton. Both subclasses look absolutely identical (I have checked this in Xcode at least
|
By
Gerriet M. Denkmann
·
|
|
NSMeasurementFormatter reversed
5 messages
NSMeasurementFormatter is a magical tool which converts all stuff just into the right form the user wants to see. But what about the other way round? I have a TextField labeled “Desired Temperature” t
NSMeasurementFormatter is a magical tool which converts all stuff just into the right form the user wants to see. But what about the other way round? I have a TextField labeled “Desired Temperature” t
|
By
Gerriet M. Denkmann
·
|
|
UITableViewCell with UITextField
6 messages
iOS 12, Xcode 10 I have a subclass of UITableViewController. The UITableView should use UITableViewCells with UITextFields (for data entry). So I created MyTableViewCellWithTextField which has: @prope
iOS 12, Xcode 10 I have a subclass of UITableViewController. The UITableView should use UITableViewCells with UITextFields (for data entry). So I created MyTableViewCellWithTextField which has: @prope
|
By
Gerriet M. Denkmann
·
|
|
How to Correctly Resize Views with Manual Layout
4 messages
Hi All, I’ve started move over to using the correct Manual Layout Methods as per my recent posts. The methods are: resizeWithOldSuperviewSize WindowTrackerView .view Property SubviewA All views have i
Hi All, I’ve started move over to using the correct Manual Layout Methods as per my recent posts. The methods are: resizeWithOldSuperviewSize WindowTrackerView .view Property SubviewA All views have i
|
By
Dave
·
|
|
Temperatur etc. from Locale
3 messages
I want to know, given a certain NSLocale (e.g. NSLocale.currentLocale), how to represent: Temperature (K, °C or whatever) Distance (km, miles, furlongs, lightyears, … ) Speed (m/sec, km/h, …) Frequenc
I want to know, given a certain NSLocale (e.g. NSLocale.currentLocale), how to represent: Temperature (K, °C or whatever) Distance (km, miles, furlongs, lightyears, … ) Speed (m/sec, km/h, …) Frequenc
|
By
Gerriet M. Denkmann
·
|
|
More Layout Questions
11 messages
Hi, I have a couple of questions related to manual layout on the Mac. Using manual layout, does setting the “frame: of a view cause “layout” to be called or do I need to call “setNeedsLayout” specific
Hi, I have a couple of questions related to manual layout on the Mac. Using manual layout, does setting the “frame: of a view cause “layout” to be called or do I need to call “setNeedsLayout” specific
|
By
Dave
·
|
|
Refactoring existing Core Data entity classes?
6 messages
I have inherited some code where Core Data entity classes look something like this: @interface Entity1 : NSManagedObject Something* common1; Something* common2; Something* common3; SomethingElse* enti
I have inherited some code where Core Data entity classes look something like this: @interface Entity1 : NSManagedObject Something* common1; Something* common2; Something* common3; SomethingElse* enti
|
By
Steve Christensen
·
|
|
Updating to Xcode 10
11 messages
After a hiatus of some months, I'm back to programming, and just got Xcode 10 installed. When I go to build, I get all kinds of changes suggested. I make some, but then I get stuck some that I cannot
After a hiatus of some months, I'm back to programming, and just got Xcode 10 installed. When I go to build, I get all kinds of changes suggested. I make some, but then I get stuck some that I cannot
|
By
John Brownie
·
|
|
Adjusting Font Size to fit View Rectangle
12 messages
Hi All, Is there a Cocoa method I can use that will return the best fitting Font Size for a given String and Font? I seem to remember using a method that does it but can’t seem to find it any more…..
Hi All, Is there a Cocoa method I can use that will return the best fitting Font Size for a given String and Font? I seem to remember using a method that does it but can’t seem to find it any more…..
|
By
Dave
·
|
|
Can NSView and NSImageView respond to Mouse Clicks?
8 messages
Hi, Can an Custom NSView respond to Mouse Clicks via IBActions? Can the same be done with NSImageView? I’ve added an image view and connected it to an IBAction method define in my View Controller, but
Hi, Can an Custom NSView respond to Mouse Clicks via IBActions? Can the same be done with NSImageView? I’ve added an image view and connected it to an IBAction method define in my View Controller, but
|
By
Dave
·
|
|
How to end a UIKeyboardTypeDecimalPad
I got a UITextField which has a UIKeyboardTypeDecimalPad. With a normal TextField (UIKeyboardTypeDefault) the user can enter Return, the UITextFieldDelegate gets textFieldShouldReturn and all is well.
I got a UITextField which has a UIKeyboardTypeDecimalPad. With a normal TextField (UIKeyboardTypeDefault) the user can enter Return, the UITextFieldDelegate gets textFieldShouldReturn and all is well.
|
By
Gerriet M. Denkmann
·
|
|
Adding Action Methods to Controls
2 messages
Hi, I’ve created an NSButton Class and added an Action to it as so: myButton = [[NSButton alloc] initWithFrame:myButtonFrameRect]; myButton.image = myImage; myButton.imageScaling = NSImageScaleProport
Hi, I’ve created an NSButton Class and added an Action to it as so: myButton = [[NSButton alloc] initWithFrame:myButtonFrameRect]; myButton.image = myImage; myButton.imageScaling = NSImageScaleProport
|
By
Dave
·
|
|
iOS: TableView inside ScrollView
4 messages
iOS 11, Xcode 10 I have a view with an UIScrollView, which is bound on all 4 sides to the save area. This ScrollView contains: UILabel UITableView UILabel The problem: if the TableView does *not* have
iOS 11, Xcode 10 I have a view with an UIScrollView, which is bound on all 4 sides to the save area. This ScrollView contains: UILabel UITableView UILabel The problem: if the TableView does *not* have
|
By
Gerriet M. Denkmann
·
|
|
XPC Question
4 messages
Can you do XPC RPC over an IP connection? Or, in other words… Can you do XPC between two computers? Thanks, Sandor
Can you do XPC RPC over an IP connection? Or, in other words… Can you do XPC between two computers? Thanks, Sandor
|
By
Sandor Szatmari
·
|
|
Window Position and Size Restored
4 messages
Hi, Mac, Manual Layout. I’m trying to reset the Window Position Size each time my App is run. When I run it under Debug, the Window Position keeps getting restored (AFAICT), I’ve subclassed NSWindow a
Hi, Mac, Manual Layout. I’m trying to reset the Window Position Size each time my App is run. When I run it under Debug, the Window Position keeps getting restored (AFAICT), I’ve subclassed NSWindow a
|
By
Dave
·
|
|
Maintaining Aspect Ration of a Window
5 messages
Mac, Manual Layout of Views. Hi All, Is there anyway to ensure that when a window resizes on the Mac it maintains its aspect ratio? I’m doing manual layout as for this project Auto Layout isn’t viable
Mac, Manual Layout of Views. Hi All, Is there anyway to ensure that when a window resizes on the Mac it maintains its aspect ratio? I’m doing manual layout as for this project Auto Layout isn’t viable
|
By
Dave
·
|