Chrome certificate error with self signed websites on Mac OS Catalina

Drag and drop self signed certificate onto desktop and import it into keychain. Double click on it and select “Always Trust”.

 

For further details, visit https://www.chrisdooks.com/2019/10/08/macos-catalina-chrome-certificate-error-when-browsing-self-signed-sites/

 

CoreData: error: (19) PRIMARY KEY must be unique

Set the Z_MAX to largest Z_PK value in the corresponding table.

UPDATE "main"."Z_PRIMARYKEY" SET "Z_MAX" = n where "Z_ENT" = n

Cited from: why is this code raising the coredata error 19 primary key must be unique

Three20 Framework compile time issues with Xcode 4

Do the following to fix the Three20 framework compile time isssues with Xcode 4

Protect.command

Remove  cd ${CONFIGURATION_BUILD_DIR}${PUBLIC_HEADERS_FOLDER_PATH}
Add ${CONFIGURATION_BUILD_DIR}/..${PUBLIC_HEADERS_FOLDER_PATH}

Paths.xcconfig

Remove HEADER_SEARCH_PATHS     = $(STDLIB_HEADERS) “$(CONFIGURATION_BUILD_DIR)/../three20”
Add HEADER_SEARCH_PATHS     = $(STDLIB_HEADERS) “$(CONFIGURATION_BUILD_DIR)/../../three20”

Main project build settings

OTHER_LDFLAGS = (
    “-ObjC”,
    “-licucore”,
    “-all_load”,
);

Blogged with the Flock Browser

How to check the character is backspace (delete)


- (BOOL) textField:(UITextField *) textField
shouldChangeCharactersInRange:(NSRange) range
            replacementString:(NSString *) string
{
     if ([string length])
     {
          if ([string characterAtIndex:0] == 10)
          {
               NSLog(@"keyboard backspace pressed");
          }
      }
      return YES;
}

Blogged with the Flock Browser

Basic topics a mac developer should know

  • MVC Pattern
  • Memory Management
  • Archiving Data
  • User Defaults
  • Localization
  • Categories
  • Formal and informal Protocols
  • Key Value coding
  • Key Value observing
  • Custom Drawing
  • Notifications
  • Delegation
  • Blocks
  • Threads
  • Core Animation
  • Debugging
  • Instruments
  • Predicates
  • Custom Drawing
  • Bindings
Blogged with the Flock Browser