You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i dragded an image view in the Xcode Xib file then with the Inspector i made it a subclass of NSView and named it" Heart" . Then i created a new swift file called "Heart" that i inserted with the other project files.
if i run the empty class no error:
class coeur: NSView
{
}
i changed the function drawRect with Rect and tried many changes inside the func : it s not the probleme.
Something wrong with the declaration of the class
Wrote on swift 4 Xcode 9. My whole project is an NSDocument type.
i am not a software engineer or pro develeppoer or student , any help is welcomed. thanks a lot
The text was updated successfully, but these errors were encountered:
i dragded an image view in the Xcode Xib file then with the Inspector i made it a subclass of NSView and named it" Heart" . Then i created a new swift file called "Heart" that i inserted with the other project files.
Inside the Heart.swift there is:
import Cocoa
class coeur: NSView
{
}
When running i have compiler error
class coeur: NSView 1. In declaration of 'coeur'
{
}
if i run the empty class no error:
class coeur: NSView
{
}
i changed the function drawRect with Rect and tried many changes inside the func : it s not the probleme.
Something wrong with the declaration of the class
Wrote on swift 4 Xcode 9. My whole project is an NSDocument type.
i am not a software engineer or pro develeppoer or student , any help is welcomed. thanks a lot
The text was updated successfully, but these errors were encountered: