Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Returns how many NSImageViews we had in a given view.
- func subViewCheck (viewName viewName: NSView) -> Int {
- var counter: Int = 0
- let views = viewName.subviews
- for k in 0..<views.count {
- if views[k].description.containsString("NSImageView") {
- counter += 1
- }
- }
- return counter
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement