{ "id": "151534", "key": "TIMOB-19593", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2016-11-04T06:42:57.000+0000", "created": "2015-09-28T17:12:50.000+0000", "epic": { "id": 143701, "key": "TIMOB-18467", "name": "Windows: Native APIs through JS", "summary": "Windows: Allow Usage of JavaScript against Native Windows APIs", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "49112", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149837", "key": "TIMOB-19245", "fields": { "summary": "Windows: Allow mixing Ti.Ui.View and Windows UI components", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-21T20:34:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "We automatically will wrap/unwrap native UI elements to interact with Ti.UI.View and its subclasses. The issue is that we dynamically unwrap the native Windows.UI.Xaml.UIElement and then wrap it in a special subclass of Ti.UI.View without tracking the two objects. So if we say add a native TextBlock to a Ti.Ui.Window - that will generate a one-time dynamic Ti.Ui.View to wrap the TextBlock. If we make other calls that require converting, we'll generate a _new_ converted Ti.UI.View rather than re-use the previously generated one.\r\n{code:javascript}\r\nwin.add(textblock); // will auto convert the TitaniumWindows::UI::Xaml::TextBlock to a TitaniumWindows::UI::View holding the same underlying Windows::UI::Xaml::TextBlock object.\r\nwin.remove(textblock); // This likely won't work. We'll generate _another_ dynamic TitaniumWindows::UI::View object rather than lookup the one we generated above.\r\n// We'd probably have to do:\r\n// win.remove(win.children[win.children.length]);\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Track native API wrapper conversion objects", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "400383", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket for now because it is obsolete, since we're moving to reflection-based Hyperloop implementation as of TIMOB-23765.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-04T06:42:57.000+0000", "updated": "2016-11-04T06:42:57.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }