Skip to content

Conversation

@pjrobertson
Copy link
Member

@pjrobertson pjrobertson commented Feb 1, 2025

  • Fix main thread issue + better message when tryig to copy to (protected) /Applications folder
  • Fix dragging images into apps (e.g. Whatsapp) (Todo: switch to NSPasteboardItem)
  • Remove superfluous visual effects, fixes [WIP] Fixes for Sequoia #3025
  • Fix making accessibility prompt focusable

+ WIP - other animations
…option was disabled, causing the results view to display immediately
Copy link
Member

@n8henrie n8henrie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, tremendous effort. Thanks Paddy!

// the object isn't a file/doesn't exist, so return. shouldn't actually happen
if (![manager fileExistsAtPath:path]) {
__block BOOL exists = YES;
QSGCDMainSync(^{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this change makes this run on the main thread instead of a lower priority background thread?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, if you're going to get into GCD, you should familiarise yourself with the QSGCD methods I made. They're basic wrappers but make things a little but easier.

This was needed because sometimes this would happen on a background thread, and file reads have to happen on the main thread.

if (!includeTypes) {
includeTypes = @[NSStringPboardType, QSTextType];
}
NSLog(@"WARNING: This method is deprecated, ignoring the declareTypes and includeTypes parameters");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just get rid of the additional instances? Or is the issue that it might be called from plugins? (In which case maybe another benefit of monorepo, being able to more confidently change our API.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly - I originally just deleted them but then clipboard plugin crashed, because it was using it. If we have a monorepo we don't need to worry too much because we can just do a global search and replace, but still - we shouldn't just delete methods (like I did!) because if someone is running an old QS with a new plugin or vice versa it will cause a crash.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Oh and another example of why deleting methods is bad - when the [QSWindow flare] method was deleted as part of the CGSPrivate, because it no longer existed it broke the yosemite interface (now fixed)

// NSLog(@"types %@", [pboard types]);
return YES;
- (BOOL)putOnPasteboard:(NSPasteboard *)pboard includeDataForTypes:(NSArray *)includeTypes {
NSLog(@"WARNING: This method is deprecated, ignoring the includeTypes parameter");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any other calls to this in the main QS codebase at first glance.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clipboard was using it (but I fixed that). I don't know about other plugins...

[newActions addObject:kQSObjectShowChildrenAction];
}
if ([[QSLibrarian sharedInstance] firstEntryContainingObject:dObject])
if ([dObject objectForMeta:QSCatalogStructureChanged] || [[QSLibrarian sharedInstance] firstEntryContainingObject:dObject])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this is why I'm not seeing show source in catalog for those odd catalog entries (that look like they're bullet points from some kind of note file)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My results for asdf (which is my synonym for clipboard history, but none of these are on my clipboard history):

Screenshot 2025-02-19 at 20 54 13

You can barely see, but the "echo" item is selected in the left pane, and I've searched for source in the second:

Screenshot 2025-02-19 at 20 55 30

Show source in catalog has completely disappeared from my actions:

Screenshot 2025-02-19 at 20 56 20

@n8henrie
Copy link
Member

n8henrie commented Feb 22, 2025

Still having lots of weird catalog issues with this branch.

Figured this out -- was running from an "archive" copy instead of the blessed build path!

@pjrobertson pjrobertson merged commit 50a975b into main Mar 1, 2025
2 checks passed
@pjrobertson pjrobertson deleted the sequoia-fixes branch March 1, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants