-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed: cappuccino pasteboad is always clobbered by system pasteboard #2462
Conversation
Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue. |
-#new |
+AppKit |
Milestone: Someday. Labels: #needs-review, AppKit. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on. |
@aljungberg can you take a look please? |
@aljungberg are you still around? |
Assignee: aljungberg. Milestone: Someday. Labels: #needs-review, AppKit. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on. |
Assignee: aljungberg. Milestone: 0.9.10. Labels: #needs-review, AppKit. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on. |
Hmm but if nothing was pasted into And it the user did paste a string, wouldn't we expect the pasteboard to only have a string in it (and remove all other representations)? |
@aljungberg please consider this use case: the user decides to paste twice, starting with a plain field and then into a rich text view. Without this patch, the first paste will remove the rich representation of the pasteboard and the user will never get the rich text pasted in. |
from looking into _generateStateUID from CPPasteboard.j, comparing _stateUID and value does not make sense anyway. |
Merged! Thanks! If this PR creates problems we have to fix them later. It is needed for #2068. |
Assignee: aljungberg. Milestone: 0.9.10. Labels: #fixed, AppKit. What's next? This issue is considered successfully resolved. |
previously, every native nativePasteEvent: compared the pasted content to [pasteboard _stateUID], which is always undefined in the current implementation of CPPasteboard. This resulted in a call to pasteboard declareTypes:[CPStringPboardType] owner:self, effectively removing all other representations during each paste.
This PR makes capp to only call [CPStringPboardType] owner:self if the system and capp CPStringPboardType actually differ. This makes the system and capp pasteboards cooperate. This is a prerequisite for proper copy/paste support of the new text system.
Fixes #2062 and
daboe01/CPTextView#109