Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(788)

Issue 4576059: Cocoa Sample App (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by yangsu
Modified:
13 years, 5 months ago
Reviewers:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Revised #

Total comments: 11

Patch Set 3 : Revised implementation #

Total comments: 5

Patch Set 4 : Removed fView from NSWindow, leave that to subclass #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5091 lines, -0 lines) Patch
A xcode/SimpleCocoaApp/English.lproj/InfoPlist.strings View 1 1 chunk +2 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/English.lproj/MainMenu.xib View 1 2 3 1 chunk +4274 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SampleWindow.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SampleWindow.mm View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SimpleCocoaApp-Info.plist View 1 1 chunk +32 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SimpleCocoaApp.xcodeproj/project.pbxproj View 1 2 3 1 chunk +513 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SimpleCocoaApp_Prefix.pch View 1 1 chunk +7 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SkNSView.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SkNSView.mm View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SkNSWindow.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/SkNSWindow.mm View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A xcode/SimpleCocoaApp/main.m View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 5
yangsu
Here's the cocoa sample app
13 years, 5 months ago (2011-06-14 22:05:45 UTC) #1
reed1
http://codereview.appspot.com/4576059/diff/2001/xcode/SimpleCocoaApp/MainWindow.mm File xcode/SimpleCocoaApp/MainWindow.mm (right): http://codereview.appspot.com/4576059/diff/2001/xcode/SimpleCocoaApp/MainWindow.mm#newcode33 xcode/SimpleCocoaApp/MainWindow.mm:33: object:nil]; // Put your subclass of SkView here! http://codereview.appspot.com/4576059/diff/2001/xcode/SimpleCocoaApp/SkContainerView.mm ...
13 years, 5 months ago (2011-06-15 15:29:52 UTC) #2
yangsu
http://codereview.appspot.com/4576059/diff/2001/xcode/SimpleCocoaApp/SkContainerView.mm File xcode/SimpleCocoaApp/SkContainerView.mm (right): http://codereview.appspot.com/4576059/diff/2001/xcode/SimpleCocoaApp/SkContainerView.mm#newcode9 xcode/SimpleCocoaApp/SkContainerView.mm:9: fMatrix = NULL; On 2011/06/15 15:29:52, reed1 wrote: > ...
13 years, 5 months ago (2011-06-15 17:11:54 UTC) #3
reed1
summary: rename to installSkViews unref in install, so we don't need to override dealloc can ...
13 years, 5 months ago (2011-06-15 17:26:57 UTC) #4
yangsu
13 years, 5 months ago (2011-06-15 20:22:05 UTC) #5
http://codereview.appspot.com/4576059/diff/8001/xcode/SimpleCocoaApp/SampleWi...
File xcode/SimpleCocoaApp/SampleWindow.mm (right):

http://codereview.appspot.com/4576059/diff/8001/xcode/SimpleCocoaApp/SampleWi...
xcode/SimpleCocoaApp/SampleWindow.mm:37: -(void) loadViews {
On 2011/06/15 17:26:57, reed1 wrote:
> SkView* v = new SkSampleView
> v->setThisAndThat(...)
> [fContainerView addSkView:v];
> v->unref();

Done.

http://codereview.appspot.com/4576059/diff/8001/xcode/SimpleCocoaApp/SkNSView.h
File xcode/SimpleCocoaApp/SkNSView.h (right):

http://codereview.appspot.com/4576059/diff/8001/xcode/SimpleCocoaApp/SkNSView...
xcode/SimpleCocoaApp/SkNSView.h:20: #import <Cocoa/Cocoa.h>
On 2011/06/15 17:26:57, reed1 wrote:
> class SkNSContainerView;

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b