Skip to content
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

Carbon.Scrap.PutScrapFlavor #44847

Closed
dingus9 mannequin opened this issue Apr 14, 2007 · 5 comments
Closed

Carbon.Scrap.PutScrapFlavor #44847

dingus9 mannequin opened this issue Apr 14, 2007 · 5 comments
Assignees
Labels
OS-mac type-bug An unexpected behavior, bug, or error

Comments

@dingus9
Copy link
Mannequin

dingus9 mannequin commented Apr 14, 2007

BPO 1700507
Nosy @jackjansen, @ronaldoussoren, @ngie-eign

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/jackjansen'
closed_at = <Date 2009-12-26.11:21:10.229>
created_at = <Date 2007-04-14.08:27:02.000>
labels = ['OS-mac', 'type-bug']
title = 'Carbon.Scrap.PutScrapFlavor'
updated_at = <Date 2009-12-26.11:21:10.220>
user = 'https://bugs.python.org/dingus9'

bugs.python.org fields:

activity = <Date 2009-12-26.11:21:10.220>
actor = 'ronaldoussoren'
assignee = 'jackjansen'
closed = True
closed_date = <Date 2009-12-26.11:21:10.229>
closer = 'ronaldoussoren'
components = ['macOS']
creation = <Date 2007-04-14.08:27:02.000>
creator = 'dingus9'
dependencies = []
files = []
hgrepos = []
issue_num = 1700507
keywords = []
message_count = 5.0
messages = ['31786', '31787', '83602', '83603', '95688']
nosy_count = 4.0
nosy_names = ['jackjansen', 'ronaldoussoren', 'dingus9', 'ngie']
pr_nums = []
priority = 'low'
resolution = 'wont fix'
stage = 'test needed'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1700507'
versions = ['Python 2.6', 'Python 2.7']

@dingus9
Copy link
Mannequin Author

dingus9 mannequin commented Apr 14, 2007

The GetScrapFlavor(), and ClearCurrentScrap() functions work fine, however the PutScrapFlavor, is not putting th e text into my clipboard. The function does not return an error nor exception from my code, as far as I can tell.

sample of code:
import Carbon.Scrap as scrap
import MacOS

    text = 'the test text'
    scrap.ClearCurrentScrap()
    item = scrap.GetCurrentScrap()
    item.PutScrapFlavor(type, 0, text)

Result is: Previous text is cleard, and nothing is put in its place.

I am continuing to research this, as well as try it in C, and install python2.5.

Environment
Python 2.4
Mac OSX 10.4.9
Intel

@dingus9 dingus9 mannequin assigned jackjansen Apr 14, 2007
@dingus9 dingus9 mannequin added the OS-mac label Apr 14, 2007
@dingus9 dingus9 mannequin assigned jackjansen Apr 14, 2007
@dingus9 dingus9 mannequin added the OS-mac label Apr 14, 2007
@dingus9
Copy link
Mannequin Author

dingus9 mannequin commented Apr 15, 2007

Tested with python25, function calls GetScrapFlavorData, and PutScrapFlavorData now result in a bus error.

@devdanzin devdanzin mannequin added type-bug An unexpected behavior, bug, or error labels Feb 15, 2009
@ngie-eign
Copy link
Mannequin

ngie-eign mannequin commented Mar 14, 2009

I'm confirming this issue on Intel / Leopard with python 2.5 (system
python), 2.5 (macports) and 2.6 (macports).

PPC / Tiger with python 2.3 (system python), 2.5 (macports) and 2.6
(macports) just errors out with:

MacOS.Error: (-4960, 'coreFoundationUnknownErr')

@ngie-eign
Copy link
Mannequin

ngie-eign mannequin commented Mar 14, 2009

The failure testcase that dingus9 provided is:

import Carbon.Scrap as Scrap
scrap = Scrap.GetCurrentScrap()
scrap.GetScrapFlavorData('TEXT')

@ronaldoussoren
Copy link
Contributor

Lowering the priority to low because this is a bug in a deprecated binding
for a deprecated Apple framework. I won't work on a fix, although I am
willing to review and apply a patch when someone provides one.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-mac type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants