let predicate = NSCompoundPredicate(orPredicateWithSubpredicates: [
NSPredicate(format: "entity = %@", Note.entity()),
NSPredicate(format: "content CONTAINS[cd] %@", "1")
NSPredicate(format: "entity = %@", Tag.entity()),
NSPredicate(format: "name CONTAINS[c] %@", "tag")
Now, this yields another problem: there is no API to limit the number of entities to fetch “per group”.
If you do need this feature, you’re probably better of with multiple NSFetchRequest(s).
Scenario: You’ve installed Bootcamp on your mac (shame on you), AND updated AMD’s graphic cards, to deal with stability issues.
If, for some reason, your MacBook’s special keys (Brightness, Volume, etc) stop working:
- Boot into your macOS partition
- Open BootCamp Assistant
- Click over Action > Download Windows Support Software
- Save the package to a flashdrive
- Boot back into Windows
- Run BootCamp > Drivers > Apple > AppleKeyboardInstaller64
- Think closely, why, in the name of Satan, you’d need Windows
In order to get NSTokenField (or NSTextField) play well with a ScrollView, you should:
- Pin the fixed edges (in my case: Top / Bottom / Left)
- Leave alone the edges that can grow (again, in my case: Right)
- Set a placeholder Intrinsic Size, to keep IB happy
- Override intrinsicContentSize
- Pinning the TokenField to every single edge simply causes the container view to assume the actual TokenField’s size (and thus, kills the scrolling behavior).
- Sample code available here!
This error, thrown while trying to install an old macOS version (probably in a VM!) is caused by an expired certificate.
Good news is: this can be fixed, by deleting a file within the installer itself:
- Right click on the Installer XXX.dmg
- Click over Show Package Contents
- Open Contents > Shared Support
- Nuke InstallInfo.plist
In roughly 35 years (wow I’m a bit old!!) I never ever got a postcard. Up until today!!
Thank you Thuy, this is an AMAZING gift. Will live on my desk from now on! ❤️